stop build with CUDA 9.0RC

532 views
Skip to first unread message

sL1pKn07 SpinFlo

unread,
Aug 13, 2017, 3:19:37 AM8/13/17
to Caffe Users
Hi ppl


when try build caffe with CUDA 9.0RC:


/opt/cuda/bin/nvcc -ccbin=g++-5 -Xcompiler -fPIC -DCAFFE_VERSION=1.0.0-rc3 -DNDEBUG -O2 -DUSE_CUDNN -I/usr/local/include -I/usr/include -I.build_release/src -I./src -I./include -I/opt/cuda/include -I/usr/include/openblas -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_5
0,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_61,code=compute_61 -M src/caffe/util/math_functions.cu -o .build_release/cuda/src/caffe/util/math_functions.d \
       -odir .build_release/cuda/src/caffe/util
In file included from /opt/cuda/include/common_functions.h:50:0,
                from /opt/cuda/include/cuda_runtime.h:115,
                from <línea-de-orden>:0:
/opt/cuda/include/crt/common_functions.h:64:24: error: token ""__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."" is not valid in preprocessor expressions
#define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                       ^
/opt/cuda/include/crt/common_functions.h:64:24: error: token ""__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."" is not valid in preprocessor expressions
#define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                       ^
make: *** [Makefile:592: .build_release/cuda/src/caffe/util/math_functions.o] Error 1



from the CUDA 9.0RC release notes:

CUDA Compiler 

‣ __CUDACC_VER__ Macro. The __CUDACC_VER__ macro is no longer supported. The following macros are still supported and can be used instead: 
       ‣ __CUDACC_VER_MAJOR__ 
       ‣ __CUDACC_VER_MINOR__ 
       ‣ __CUDACC_VER_BUILD__


using GCC 7.1.1

greetings

Mahfujur Rahman

unread,
Sep 28, 2017, 1:20:55 AM9/28/17
to Caffe Users
NVCC src/caffe/util/math_functions.cu
In file included from /usr/local/cuda-9.0/include/common_functions.h:50:0,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/common_functions.h:64:24: error: token ""__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."" is not valid in preprocessor expressions

 #define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                        ^
NVCC src/caffe/util/im2col.cu
Makefile:595: recipe for target '.build_release/cuda/src/caffe/util/math_functions.o' failed
make: *** [.build_release/cuda/src/caffe/util/math_functions.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from /usr/local/cuda-9.0/include/common_functions.h:50:0,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/common_functions.h:64:24: error: token ""__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."" is not valid in preprocessor expressions

 #define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
                        ^
Makefile:595: recipe for target '.build_release/cuda/src/caffe/util/im2col.o' failed
make: *** [.build_release/cuda/src/caffe/util/im2col.o] Error 1
Reply all
Reply to author
Forward
0 new messages