-
Notifications
You must be signed in to change notification settings - Fork 18.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: token ""__CUDACC_VER__ is no longer supported. #5994
Comments
sorry, I solved this issue for myself. For me, I just comments /usr/local/cuda/include/crt/common_functions.h line 64: and recompile. |
This issue may be closed now, but I found an alternative solution that did not require modifying the CUDA headers: upgrade boost to at least 1.65.1 and then try building caffe again. |
Upgrading boost to 1.67.0 didn't help me right now. |
It is wrong for say upgrade boost version remove the error. It does not work ............. |
I upgrade boost from 1.62 to 1.65 and the problem is solved... |
comfirm again with caffe from nvida 0.15.x and cuda 9.2 on ubuntu 18.04. install libboost-all-dev ver 1.65.1 is solve problem |
My cuda version is relatively new currently
Normally this can compile successfully, but when I tried this in a complex program, I meet the mentioned error. Then I just tried to use the "classic" way to compile cuda program, which is like
Compile is fine now. |
Operating system: ubuntu 18.04 In my case, this error is caused by the mismatched |
My problem is also solved by upgrading For anyone wondering why the compiler refuse to reveal that it is The cmake compiling system includes the eigen headers (and maybe all other headers which may cause this problem, e.g. boost) using the flag Hence, for anyone who meet this problem, I would suggest the following procedure to debug:
|
Doesn't work for me |
Upgrading eigen worked for me too. |
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
Hi Guys,
I was trying to compile the caffe at first,I meet this error:
nvcc fatal : Unsupported gpu architecture 'compute_20'
And I delete this two lines in Makefile.config, but I meet this error:
NVCC src/caffe/layers/eltwise_layer.cu In file included from /usr/local/cuda/include/common_functions.h:50:0, from /usr/local/cuda/include/cuda_runtime.h:115, from <command-line>:0: /usr/local/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 __ ^ Makefile:594: recipe for target '.build_release/cuda/src/caffe/layers/eltwise_layer.o' failed make: *** [.build_release/cuda/src/caffe/layers/eltwise_layer.o] Error 1
I'm very appreciate if anyone can help.
Operating system: ubuntu 17.04
Compiler: GCC/G++ v5.4.1
CUDA version (if applicable):9.0
CUDNN version (if applicable):v6.0.21
BLAS:
Python or MATLAB version (for pycaffe and matcaffe respectively):
The text was updated successfully, but these errors were encountered: