-
Notifications
You must be signed in to change notification settings - Fork 194
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
Compiling problem: invalid redeclaration of type name & cannot overload functions distinguished by return type alone #55
Comments
I'm using the Makefile from @lamanorange posted here: #28. I modified CUDA_HOME to be cuda-9.0 as the symbolic link /usr/local/cuda points to cuda-8.0 (cannot change this).
This is my error message:
|
Try CUDA 9? |
I have cuda-8.0 and cuda-9.0 installed, the symbolic link cuda points to cuda-8.0. However, in my .bashrc I add cuda-9.0 to my PATH and LD_LIBRARY_PATH, so that typing nvcc --version outputs
Tensorflow is 1.9.0, installed with pip |
I edited several lines in Makefile according to other threads as follows because of errors,
GPUCC = nvcc --expt-relaxed-constexpr
CFLAGS = -std=c++11 -I$(TF_INC) -I"$(CUDA_HOME)/.." -DGOOGLE_CUDA=1
GPUCFLAGS = -L /home/delia/tensorflow/lib/python2.7/site-packages/tensorflow -ltensorflow_framework
and now I get the following errors. Could anyone help please? Thanks.
/usr/local/cuda/../cuda/include/cuda_fp16.h(96): error: invalid redeclaration of type name "__half"
/usr/local/cuda-9.0/bin/../targets/x86_64-linux/include/cuda_fp16.hpp(124): here
/usr/local/cuda/../cuda/include/cuda_fp16.h(100): error: invalid redeclaration of type name "__half2"
/usr/local/cuda-9.0/bin/../targets/x86_64-linux/include/cuda_fp16.hpp(224): here
/usr/local/cuda/../cuda/include/cuda_fp16.h(103): error: invalid redeclaration of type name "half"
/usr/local/cuda-9.0/bin/../targets/x86_64-linux/include/cuda_fp16.hpp(1793): here
/usr/local/cuda/../cuda/include/cuda_fp16.h(104): error: invalid redeclaration of type name "half2"
/usr/local/cuda-9.0/bin/../targets/x86_64-linux/include/cuda_fp16.hpp(1794): here
/usr/local/cuda/../cuda/include/cuda_fp16.h(128): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(138): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(148): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(158): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(219): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(229): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(239): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(249): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(303): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(313): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(323): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(333): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(385): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(395): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(405): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(415): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(470): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(481): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(491): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(501): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(556): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(567): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(577): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(587): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(641): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(651): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(661): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(671): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(771): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(785): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(799): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(968): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(978): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(1955): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(1961): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(1967): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(1973): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2004): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2010): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2016): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2022): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2053): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2059): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2065): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2071): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2102): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2108): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2114): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2120): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2151): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2157): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2163): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2169): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2200): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2206): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2212): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2218): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2305): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2311): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2317): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2323): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2335): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2343): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2352): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2354): error: no suitable user-defined conversion from "__half2" to "__half2" exists
/usr/local/cuda/../cuda/include/cuda_fp16.h(2461): error: cannot overload functions distinguished by return type alone
/usr/local/cuda/../cuda/include/cuda_fp16.h(2467): error: cannot overload functions distinguished by return type alone
The text was updated successfully, but these errors were encountered: