GeForce GTX TITAN ,Driver Version: 440.59,CUDA Version: 10.2
Earlier CUDA Version was 10.1 and was working fine with the following pytorch intallation command
But when I try to train my model get the following error
RuntimeError: CUDA error: no kernel image is available for execution on the device
Then I saw your repository https://github.com/pytorch/pytorch#from-source , to build from source . But I am getting the following error, when i run python setup.py
Building wheel torch-1.7.0a0
– Building version 1.7.0a0
cmake --build . --target install --config Release – -j 8
No such file or directory
CMake Error: Generator: execution of make failed. Make command was: “/home/remya/anaconda3/bin/ninja” “-j” “8” “install”
Traceback (most recent call last):
File “setup.py”, line 727, in
build_deps()
File “setup.py”, line 319, in build_deps
cmake=cmake)
File “/home/remya/pytorch/tools/build_pytorch_libs.py”, line 62, in build_caffe2
cmake.build(my_env)
File “/home/remya/pytorch/tools/setup_helpers/cmake.py”, line 346, in build
self.run(build_args, my_env)
File “/home/remya/pytorch/tools/setup_helpers/cmake.py”, line 141, in run
check_call(command, cwd=self.build_dir, env=env)
File “/home/remya/anaconda3/lib/python3.7/subprocess.py”, line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘cmake’, ‘–build’, ‘.’, ‘–target’, ‘install’, ‘–config’, ‘Release’, ‘–’, ‘-j’, ‘8’]’ returned non-zero exit status 1.
conda uninstall cpuonly does not work, do I have to use any other command to not install CPU version of PyTorch and install Cuda version
I went through these discussions and other resources as well, but I could not seem to get PyTorch to use GPU. Whenever I run this command - python -c 'import torch;print(torch.cuda.is_available())'
the output would be false
Following are the steps I followed -
Installed CUDA toolkit 10.2 ,
Downloaded CuDNN v8.0.5 and copied its file to the CUDA toolkit 10.2 folder
Installed 10.1 torch version in conda env – conda install pytorch torchvision cudatoolkit=10.1 -c pytorch
I have NVIDIA GeForce 940MX GPU and I am using a windows OS
This is the installation log of the command - conda install pytorch torchvision cudatoolkit=10.1 -c pytorch