You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I tried to build from source but the following errors occurred.
[ 2%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensorTopK.cu.o
[ 2%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCSortUtils.cu.o
[ 3%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensorTypeUtils.cu.o
[ 4%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensorMode.cu.o
[ 6%] Building NVCC (Device) object CMakeFiles/THC.dir/generated/THC_generated_THCTensorSortByte.cu.o
[ 7%] Building NVCC (Device) object CMakeFiles/THC.dir/generated/THC_generated_THCTensorMathCompareTByte.cu.o
/home/xin_cyber/Documents/pytorch/torch/lib/THC/THCTensorTopK.cuh(122): error: identifier "__half_as_ushort" is undefined
/home/xin_cyber/Documents/pytorch/torch/lib/THC/THCTensorTopK.cuh(134): error: identifier "__ushort_as_half" is undefined
2 errors detected in the compilation of "/tmp/tmpxft_00001796_00000000-7_THCTensorTopK.cpp1.ii".
CMake Error at THC_generated_THCTensorTopK.cu.o.cmake:267 (message):
Error generating file
/home/xin_cyber/Documents/pytorch/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorTopK.cu.o
CMakeFiles/THC.dir/build.make:9193: recipe for target 'CMakeFiles/THC.dir/THC_generated_THCTensorTopK.cu.o' failed
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorTopK.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
I'm using cuda V8.0.61
The text was updated successfully, but these errors were encountered:
It tends out to be my own installation problem. cuda_fp16.h is not inside /usr/local/cuda/include but I've found it in /usr/local/cuda/targets/x86_64-linux/include. Maybe because I used to have an older version of cuda installed.
Anyway, I completely removed cuda and reinstalled it. All the header files are now in place and built with no problem.
Hi, I tried to build from source but the following errors occurred.
[ 2%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensorTopK.cu.o
[ 2%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCSortUtils.cu.o
[ 3%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensorTypeUtils.cu.o
[ 4%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensorMode.cu.o
[ 6%] Building NVCC (Device) object CMakeFiles/THC.dir/generated/THC_generated_THCTensorSortByte.cu.o
[ 7%] Building NVCC (Device) object CMakeFiles/THC.dir/generated/THC_generated_THCTensorMathCompareTByte.cu.o
/home/xin_cyber/Documents/pytorch/torch/lib/THC/THCTensorTopK.cuh(122): error: identifier "__half_as_ushort" is undefined
/home/xin_cyber/Documents/pytorch/torch/lib/THC/THCTensorTopK.cuh(134): error: identifier "__ushort_as_half" is undefined
2 errors detected in the compilation of "/tmp/tmpxft_00001796_00000000-7_THCTensorTopK.cpp1.ii".
CMake Error at THC_generated_THCTensorTopK.cu.o.cmake:267 (message):
Error generating file
/home/xin_cyber/Documents/pytorch/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorTopK.cu.o
CMakeFiles/THC.dir/build.make:9193: recipe for target 'CMakeFiles/THC.dir/THC_generated_THCTensorTopK.cu.o' failed
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorTopK.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
I'm using cuda V8.0.61
The text was updated successfully, but these errors were encountered: