Due to the firewall, i could not install pytorch using the conda command. so I clone the pytorch from the github and install it according to the README.md, but i got the follow error:
/home/flml/pytorch/torch/lib/THC/THCAtomics.cuh(131): error: no instance of overloaded function “atomicCAS” matches the argument list
argument types are: (uint64_t *, uint64_t, uint64_t)
1 error detected in the compilation of “/tmp/tmpxft_0000559f_00000000-7_THCTensorIndex.cpp1.ii”.
CMake Error at THC_generated_THCTensorIndex.cu.o.cmake:267 (message):
Error generating file
/home/flml/pytorch/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorIndex.cu.o
CMakeFiles/THC.dir/build.make:161: recipe for target ‘CMakeFiles/THC.dir/THC_generated_THCTensorIndex.cu.o’ failed
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorIndex.cu.o] Error 1
make[2]: *** 正在等待未完成的任务…
CMakeFiles/Makefile2:67: recipe for target ‘CMakeFiles/THC.dir/all’ failed
make[1]: *** [CMakeFiles/THC.dir/all] Error 2
Makefile:127: recipe for target ‘all’ failed
make: *** [all] Error 2
Besides, The nvcc -V and nvidia-smi command output the following lines:
nvcc: NVIDIA ® Cuda compiler driver
Copyright © 2005-2016 NVIDIA Corporation
Built on Tue_Jan_10_13:22:03_CST_2017
Cuda compilation tools, release 8.0, V8.0.61
±----------------------------------------------------------------------------+
| NVIDIA-SMI 375.66 Driver Version: 375.66 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Quadro K620 Off | 0000:01:00.0 On | N/A |
| 34% 40C P8 1W / 30W | 262MiB / 1999MiB | 0% Default |
±------------------------------±---------------------±---------------------+
±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 990 G /usr/lib/xorg/Xorg 148MiB |
| 0 1756 G compiz 110MiB |
| 0 2299 G /usr/lib/firefox/firefox 1MiB |
±----------------------------------------------------------------------------+
Anyone can give some help to solve this ,thanks !!!