Hi @smth,
I am trying to install PyTorch v0.4.1 with Cuda 10 on Ubuntu 18.04 for Python 3.6. I am building it from source and getting the following message. Is there any solution that you know? I would really appreciate your response. Thanks
[ 71%] Building NVCC (Device) object caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/caffe2_gpu_generated_THCTensorMathCompareTByte.cu.o
/home/maaz/mmaaz60/pytorch_from_source/pytorch-0.4.1/aten/src/THC/THCAtomics.cuh(100): error: cannot overload functions distinguished by return type alone
/home/maaz/mmaaz60/pytorch_from_source/pytorch-0.4.1/aten/src/THC/THCAtomics.cuh(123): error: return value type does not match the function type
2 errors detected in the compilation of “/tmp/tmpxft_00006653_00000000-6_THCTensorScatterGather.cpp1.ii”.
CMake Error at caffe2_gpu_generated_THCTensorScatterGather.cu.o.Release.cmake:279 (message):
Error generating file
/home/maaz/mmaaz60/pytorch_from_source/pytorch-0.4.1/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/./caffe2_gpu_generated_THCTensorScatterGather.cu.o
caffe2/CMakeFiles/caffe2_gpu.dir/build.make:9994: recipe for target 'caffe2/CMakeFiles/caffe2_gpu.dir//aten/src/THC/caffe2_gpu_generated_THCTensorScatterGather.cu.o’ failed
make[2]: *** [caffe2/CMakeFiles/caffe2_gpu.dir//aten/src/THC/caffe2_gpu_generated_THCTensorScatterGather.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs…
/home/maaz/mmaaz60/pytorch_from_source/pytorch-0.4.1/aten/src/THC/THCAtomics.cuh(100): error: cannot overload functions distinguished by return type alone
/home/maaz/mmaaz60/pytorch_from_source/pytorch-0.4.1/aten/src/THC/THCAtomics.cuh(123): error: return value type does not match the function type
2 errors detected in the compilation of “/tmp/tmpxft_00006699_00000000-6_THCTensorIndex.cpp1.ii”.
CMake Error at caffe2_gpu_generated_THCTensorIndex.cu.o.Release.cmake:279 (message):
Error generating file
/home/maaz/mmaaz60/pytorch_from_source/pytorch-0.4.1/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/./caffe2_gpu_generated_THCTensorIndex.cu.o
caffe2/CMakeFiles/caffe2_gpu.dir/build.make:8536: recipe for target 'caffe2/CMakeFiles/caffe2_gpu.dir//aten/src/THC/caffe2_gpu_generated_THCTensorIndex.cu.o’ failed
make[2]: *** [caffe2/CMakeFiles/caffe2_gpu.dir//aten/src/THC/caffe2_gpu_generated_THCTensorIndex.cu.o] Error 1
CMakeFiles/Makefile2:923: recipe for target ‘caffe2/CMakeFiles/caffe2_gpu.dir/all’ failed
make[1]: *** [caffe2/CMakeFiles/caffe2_gpu.dir/all] Error 2
Makefile:140: recipe for target ‘all’ failed
make: *** [all] Error 2
Failed to run ‘bash tools/build_pytorch_libs.sh --use-cuda --use-nnpack nccl caffe2 nanopb libshm gloo THD c10d’