torch / torch7

http://torch.ch
Other
8.96k stars 2.38k forks source link

Cuda 9, memcpy out of scope #1191

Open varunnrao opened 5 years ago

varunnrao commented 5 years ago

NVCC build goes upto 22% but after that the build fails since 'memcpy' is out of scope. How do I solve this?

[ 22%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensorMathBlas.cu.o /usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’: /usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope return (char *) memcpy (__dest, __src, __n) + __n; ^ /usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’: /usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope return (char *) memcpy (__dest, __src, __n) + __n; ^ CMake Error at THC_generated_THCBlas.cu.o.cmake:267 (message): Error generating file /home/varun/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCBlas.cu.o