Hi i am using Win 11 and have installed cuda v11.8. after installing torch and torch_tensor(1, device = "cuda") I get a error

Error in torch_tensor_cpp(data, dtype, device, requires_grad, pin_memory) : PyTorch is not linked with support for cuda devices Exception raised from getDeviceGuardImpl at C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\c10/core/impl/DeviceGuardImplInterface.h:319 (most recent call first): 00007FF967EDAD1200007FF967EDACB0 c10.dll!c10::Error::Error [<unknown file> @ <unknown line number>] 00007FF967EDA79E00007FF967EDA750 c10.dll!c10::detail::torchCheckFail [<unknown file> @ <unknown line number>] 00007FF8AE29EC0500007FF8AE29EA60 torch_cpu.dll!at::Context::getDeviceFromPtr [<unknown file> @ <unknown line number>] 00007FF8AE770A4600007FF8AE7709B0 torch_cpu.dll!at::native::to [<unknown file> @ <unknown line number>] 00007FF8AF45A96800007FF8AF454610 torch_cpu.dll!at::compositeimplicitautograd::where [<unknown file> @ <unknown line number>] 00007FF8AF4440ED00007FF8AF40FAC0 torch_cpu.dll!at::compositeimplicitautograd::broadcast_to [<unknown file> @ <unknown line number] 

Is it because of my Cuda version and if so which version can I use?

6

Related questions 1 RuntimeError: cuda runtime error (30) : unknown error at torch/csrc/cuda/Module.cpp:32 3 RuntimeError: CUDA error: device-side assert triggered on loss function 2 Windows 10,CUDA 9,: CUDA driver version is insufficient for CUDA runtime version at ..\src\THC\THCG Related questions 1 RuntimeError: cuda runtime error (30) : unknown error at torch/csrc/cuda/Module.cpp:32 3 RuntimeError: CUDA error: device-side assert triggered on loss function 2 Windows 10,CUDA 9,: CUDA driver version is insufficient for CUDA runtime version at ..\src\THC\THCG 2 AttributeError: 'builtin_function_or_method' object has no attribute 'requires_grad' 0 Error when running a Graph neural network with pytorch-geometric Load 2 more related questions Show fewer related questions

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.