Skip to content
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

Open
Delia-17 opened this issue Sep 24, 2018 · 3 comments

Comments

@Delia-17
Copy link

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

@PiaCuk
Copy link

PiaCuk commented Mar 18, 2019

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).

  • Python 2.7.12
  • nvcc 9.0
  • echo $PATH
    /usr/local/cuda-9.0/bin:/home/pia/py27/bin:/home/pia/bin:/home/pia/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
  • echo $LD_LIBRARY_PATH
    /usr/local/cuda-9.0/lib64{LD_LIBRARY_PATH:+:}
  • gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609

This is my error message:

~/flownet2-tf$ make all
nvcc --expt-relaxed-constexpr -g -std=c++11 -I`python -c "import tensorflow; print(tensorflow.sysconfig.get_include())"` -I"/usr/local/cuda-9.0/.." -DGOOGLE_CUDA=1 -D_MWAITXINTRIN_H_INCLUDED -D_FORCE_INLINES -D__STRICT_ANSI__ -D_GLIBCXX_USE_CXX11_ABI=0 -c  src/ops/preprocessing/kernels/data_augmentation.cu.cc -x cu -Xcompiler -fPIC  -o src/ops/build/data_augmentation.o
/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/google/protobuf/arena_impl.h(57): warning: integer conversion resulted in a change of sign

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/google/protobuf/arena_impl.h(304): warning: integer conversion resulted in a change of sign

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/google/protobuf/arena_impl.h(305): warning: integer conversion resulted in a change of sign

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(138): warning: function "__shfl(unsigned int, int, int)"
/usr/local/cuda-9.0/bin/../targets/x86_64-linux/include/sm_30_intrinsics.hpp(167): here was declared deprecated ("__shfl() is deprecated in favor of __shfl_sync() and may be removed in a future release (Use -Wno-deprecated-declarations to suppress this warning).")

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(205): warning: function "__ballot"
/usr/local/cuda-9.0/bin/../targets/x86_64-linux/include/sm_20_intrinsics.h(407): here was declared deprecated ("__ballot() is deprecated in favor of __ballot_sync() and may be removed in a future release (Use -Wno-deprecated-declarations to suppress this warning).")

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(216): warning: function "__any"
/usr/local/cuda-9.0/bin/../targets/x86_64-linux/include/device_atomic_functions.h(180): here was declared deprecated ("__any() is deprecated in favor of __any_sync() and may be removed in a future release (Use -Wno-deprecated-declarations to suppress this warning).")

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(227): warning: function "__all"
/usr/local/cuda-9.0/bin/../targets/x86_64-linux/include/device_atomic_functions.h(181): here was declared deprecated ("__all() is deprecated in favor of __all_sync() and may be removed in a future release (Use -Wno-deprecated-declarations to suppress this warning).")

/usr/local/cuda-9.0/../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-9.0/../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-9.0/../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-9.0/../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-9.0/../cuda/include/cuda_fp16.h(128): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(138): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(148): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(158): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(219): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(229): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(239): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(249): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(303): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(313): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(323): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(333): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(385): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(395): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(405): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(415): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(470): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(481): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(491): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(501): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(556): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(567): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(577): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(587): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(641): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(651): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(661): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(671): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(771): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(785): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(799): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(968): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(978): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(1955): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(1961): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(1967): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(1973): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2004): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2010): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2016): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2022): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2053): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2059): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2065): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2071): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2102): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2108): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2114): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2120): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2151): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2157): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2163): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2169): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2200): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2206): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2212): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2218): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2305): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2311): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2317): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2323): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2335): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2343): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2352): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2354): error: no suitable user-defined conversion from "__half2" to "__half2" exists

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2461): error: cannot overload functions distinguished by return type alone

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(2467): error: cannot overload functions distinguished by return type alone

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsImpl.h(651): warning: missing return statement at end of non-void function "Eigen::internal::igammac_cf_impl<Scalar, mode>::run [with Scalar=float, mode=Eigen::internal::VALUE]"
          detected during:
            instantiation of "Scalar Eigen::internal::igammac_cf_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=float, mode=Eigen::internal::VALUE]" 
(855): here
            instantiation of "Scalar Eigen::internal::igamma_generic_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=float, mode=Eigen::internal::VALUE]" 
(2096): here
            instantiation of "Eigen::internal::igamma_retval<Eigen::internal::global_math_functions_filtering_base<Scalar, void>::type>::type Eigen::numext::igamma(const Scalar &, const Scalar &) [with Scalar=float]" 
/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsHalf.h(34): here

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsImpl.h(712): warning: missing return statement at end of non-void function "Eigen::internal::igamma_series_impl<Scalar, mode>::run [with Scalar=float, mode=Eigen::internal::VALUE]"
          detected during:
            instantiation of "Scalar Eigen::internal::igamma_series_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=float, mode=Eigen::internal::VALUE]" 
(863): here
            instantiation of "Scalar Eigen::internal::igamma_generic_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=float, mode=Eigen::internal::VALUE]" 
(2096): here
            instantiation of "Eigen::internal::igamma_retval<Eigen::internal::global_math_functions_filtering_base<Scalar, void>::type>::type Eigen::numext::igamma(const Scalar &, const Scalar &) [with Scalar=float]" 
/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsHalf.h(34): here

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsImpl.h(651): warning: missing return statement at end of non-void function "Eigen::internal::igammac_cf_impl<Scalar, mode>::run [with Scalar=float, mode=Eigen::internal::DERIVATIVE]"
          detected during:
            instantiation of "Scalar Eigen::internal::igammac_cf_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=float, mode=Eigen::internal::DERIVATIVE]" 
(855): here
            instantiation of "Scalar Eigen::internal::igamma_generic_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=float, mode=Eigen::internal::DERIVATIVE]" 
(2102): here
            instantiation of "Eigen::internal::igamma_der_a_retval<Eigen::internal::global_math_functions_filtering_base<Scalar, void>::type>::type Eigen::numext::igamma_der_a(const Scalar &, const Scalar &) [with Scalar=float]" 
/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsHalf.h(38): here

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsImpl.h(712): warning: missing return statement at end of non-void function "Eigen::internal::igamma_series_impl<Scalar, mode>::run [with Scalar=float, mode=Eigen::internal::DERIVATIVE]"
          detected during:
            instantiation of "Scalar Eigen::internal::igamma_series_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=float, mode=Eigen::internal::DERIVATIVE]" 
(863): here
            instantiation of "Scalar Eigen::internal::igamma_generic_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=float, mode=Eigen::internal::DERIVATIVE]" 
(2102): here
            instantiation of "Eigen::internal::igamma_der_a_retval<Eigen::internal::global_math_functions_filtering_base<Scalar, void>::type>::type Eigen::numext::igamma_der_a(const Scalar &, const Scalar &) [with Scalar=float]" 
/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsHalf.h(38): here

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsImpl.h(651): warning: missing return statement at end of non-void function "Eigen::internal::igammac_cf_impl<Scalar, mode>::run [with Scalar=float, mode=Eigen::internal::SAMPLE_DERIVATIVE]"
          detected during:
            instantiation of "Scalar Eigen::internal::igammac_cf_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=float, mode=Eigen::internal::SAMPLE_DERIVATIVE]" 
(855): here
            instantiation of "Scalar Eigen::internal::igamma_generic_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=float, mode=Eigen::internal::SAMPLE_DERIVATIVE]" 
(2108): here
            instantiation of "Eigen::internal::gamma_sample_der_alpha_retval<Eigen::internal::global_math_functions_filtering_base<Scalar, void>::type>::type Eigen::numext::gamma_sample_der_alpha(const Scalar &, const Scalar &) [with Scalar=float]" 
/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsHalf.h(42): here

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsImpl.h(712): warning: missing return statement at end of non-void function "Eigen::internal::igamma_series_impl<Scalar, mode>::run [with Scalar=float, mode=Eigen::internal::SAMPLE_DERIVATIVE]"
          detected during:
            instantiation of "Scalar Eigen::internal::igamma_series_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=float, mode=Eigen::internal::SAMPLE_DERIVATIVE]" 
(863): here
            instantiation of "Scalar Eigen::internal::igamma_generic_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=float, mode=Eigen::internal::SAMPLE_DERIVATIVE]" 
(2108): here
            instantiation of "Eigen::internal::gamma_sample_der_alpha_retval<Eigen::internal::global_math_functions_filtering_base<Scalar, void>::type>::type Eigen::numext::gamma_sample_der_alpha(const Scalar &, const Scalar &) [with Scalar=float]" 
/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsHalf.h(42): here

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsImpl.h(651): warning: missing return statement at end of non-void function "Eigen::internal::igammac_cf_impl<Scalar, mode>::run [with Scalar=double, mode=Eigen::internal::VALUE]"
          detected during:
            instantiation of "Scalar Eigen::internal::igammac_cf_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=double, mode=Eigen::internal::VALUE]" 
(855): here
            instantiation of "Scalar Eigen::internal::igamma_generic_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=double, mode=Eigen::internal::VALUE]" 
(2096): here
            instantiation of "Eigen::internal::igamma_retval<Eigen::internal::global_math_functions_filtering_base<Scalar, void>::type>::type Eigen::numext::igamma(const Scalar &, const Scalar &) [with Scalar=double]" 
/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/arch/CUDA/CudaSpecialFunctions.h(120): here

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsImpl.h(712): warning: missing return statement at end of non-void function "Eigen::internal::igamma_series_impl<Scalar, mode>::run [with Scalar=double, mode=Eigen::internal::VALUE]"
          detected during:
            instantiation of "Scalar Eigen::internal::igamma_series_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=double, mode=Eigen::internal::VALUE]" 
(863): here
            instantiation of "Scalar Eigen::internal::igamma_generic_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=double, mode=Eigen::internal::VALUE]" 
(2096): here
            instantiation of "Eigen::internal::igamma_retval<Eigen::internal::global_math_functions_filtering_base<Scalar, void>::type>::type Eigen::numext::igamma(const Scalar &, const Scalar &) [with Scalar=double]" 
/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/arch/CUDA/CudaSpecialFunctions.h(120): here

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsImpl.h(651): warning: missing return statement at end of non-void function "Eigen::internal::igammac_cf_impl<Scalar, mode>::run [with Scalar=double, mode=Eigen::internal::DERIVATIVE]"
          detected during:
            instantiation of "Scalar Eigen::internal::igammac_cf_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=double, mode=Eigen::internal::DERIVATIVE]" 
(855): here
            instantiation of "Scalar Eigen::internal::igamma_generic_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=double, mode=Eigen::internal::DERIVATIVE]" 
(2102): here
            instantiation of "Eigen::internal::igamma_der_a_retval<Eigen::internal::global_math_functions_filtering_base<Scalar, void>::type>::type Eigen::numext::igamma_der_a(const Scalar &, const Scalar &) [with Scalar=double]" 
/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/arch/CUDA/CudaSpecialFunctions.h(135): here

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsImpl.h(712): warning: missing return statement at end of non-void function "Eigen::internal::igamma_series_impl<Scalar, mode>::run [with Scalar=double, mode=Eigen::internal::DERIVATIVE]"
          detected during:
            instantiation of "Scalar Eigen::internal::igamma_series_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=double, mode=Eigen::internal::DERIVATIVE]" 
(863): here
            instantiation of "Scalar Eigen::internal::igamma_generic_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=double, mode=Eigen::internal::DERIVATIVE]" 
(2102): here
            instantiation of "Eigen::internal::igamma_der_a_retval<Eigen::internal::global_math_functions_filtering_base<Scalar, void>::type>::type Eigen::numext::igamma_der_a(const Scalar &, const Scalar &) [with Scalar=double]" 
/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/arch/CUDA/CudaSpecialFunctions.h(135): here

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsImpl.h(651): warning: missing return statement at end of non-void function "Eigen::internal::igammac_cf_impl<Scalar, mode>::run [with Scalar=double, mode=Eigen::internal::SAMPLE_DERIVATIVE]"
          detected during:
            instantiation of "Scalar Eigen::internal::igammac_cf_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=double, mode=Eigen::internal::SAMPLE_DERIVATIVE]" 
(855): here
            instantiation of "Scalar Eigen::internal::igamma_generic_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=double, mode=Eigen::internal::SAMPLE_DERIVATIVE]" 
(2108): here
            instantiation of "Eigen::internal::gamma_sample_der_alpha_retval<Eigen::internal::global_math_functions_filtering_base<Scalar, void>::type>::type Eigen::numext::gamma_sample_der_alpha(const Scalar &, const Scalar &) [with Scalar=double]" 
/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/arch/CUDA/CudaSpecialFunctions.h(154): here

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsImpl.h(712): warning: missing return statement at end of non-void function "Eigen::internal::igamma_series_impl<Scalar, mode>::run [with Scalar=double, mode=Eigen::internal::SAMPLE_DERIVATIVE]"
          detected during:
            instantiation of "Scalar Eigen::internal::igamma_series_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=double, mode=Eigen::internal::SAMPLE_DERIVATIVE]" 
(863): here
            instantiation of "Scalar Eigen::internal::igamma_generic_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=double, mode=Eigen::internal::SAMPLE_DERIVATIVE]" 
(2108): here
            instantiation of "Eigen::internal::gamma_sample_der_alpha_retval<Eigen::internal::global_math_functions_filtering_base<Scalar, void>::type>::type Eigen::numext::gamma_sample_der_alpha(const Scalar &, const Scalar &) [with Scalar=double]" 
/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/arch/CUDA/CudaSpecialFunctions.h(154): here

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(242): warning: function "__shfl(unsigned int, int, int)"
/usr/local/cuda-9.0/bin/../targets/x86_64-linux/include/sm_30_intrinsics.hpp(167): here was declared deprecated ("__shfl() is deprecated in favor of __shfl_sync() and may be removed in a future release (Use -Wno-deprecated-declarations to suppress this warning).")
          detected during instantiation of "T tensorflow::CudaShuffleSync(unsigned int, T, int, int) [with T=unsigned int]" 
(253): here

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(270): warning: function "__shfl_up(unsigned int, unsigned int, int)"
/usr/local/cuda-9.0/bin/../targets/x86_64-linux/include/sm_30_intrinsics.hpp(190): here was declared deprecated ("__shfl_up() is deprecated in favor of __shfl_up_sync() and may be removed in a future release (Use -Wno-deprecated-declarations to suppress this warning).")
          detected during instantiation of "T tensorflow::CudaShuffleUpSync(unsigned int, T, unsigned int, int) [with T=unsigned int]" 
(282): here

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(299): warning: function "__shfl_down(unsigned int, unsigned int, int)"
/usr/local/cuda-9.0/bin/../targets/x86_64-linux/include/sm_30_intrinsics.hpp(213): here was declared deprecated ("__shfl_down() is deprecated in favor of __shfl_down_sync() and may be removed in a future release (Use -Wno-deprecated-declarations to suppress this warning).")
          detected during instantiation of "T tensorflow::CudaShuffleDownSync(unsigned int, T, unsigned int, int) [with T=unsigned int]" 
(311): here

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(328): warning: function "__shfl_xor(unsigned int, int, int)"
/usr/local/cuda-9.0/bin/../targets/x86_64-linux/include/sm_30_intrinsics.hpp(236): here was declared deprecated ("__shfl_xor() is deprecated in favor of __shfl_xor_sync() and may be removed in a future release (Use -Wno-deprecated-declarations to suppress this warning).")
          detected during instantiation of "T tensorflow::CudaShuffleXorSync(unsigned int, T, int, int) [with T=unsigned int]" 
(340): here

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(242): warning: function "__shfl(int, int, int)"
/usr/local/cuda-9.0/bin/../targets/x86_64-linux/include/sm_30_intrinsics.hpp(152): here was declared deprecated ("__shfl() is deprecated in favor of __shfl_sync() and may be removed in a future release (Use -Wno-deprecated-declarations to suppress this warning).")
          detected during instantiation of "T tensorflow::CudaShuffleSync(unsigned int, T, int, int) [with T=tensorflow::uint16]" 
/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_kernel_helper.h(74): here

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(270): warning: function "__shfl_up(int, unsigned int, int)"
/usr/local/cuda-9.0/bin/../targets/x86_64-linux/include/sm_30_intrinsics.hpp(175): here was declared deprecated ("__shfl_up() is deprecated in favor of __shfl_up_sync() and may be removed in a future release (Use -Wno-deprecated-declarations to suppress this warning).")
          detected during instantiation of "T tensorflow::CudaShuffleUpSync(unsigned int, T, unsigned int, int) [with T=tensorflow::uint16]" 
/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_kernel_helper.h(80): here

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(299): warning: function "__shfl_down(int, unsigned int, int)"
/usr/local/cuda-9.0/bin/../targets/x86_64-linux/include/sm_30_intrinsics.hpp(198): here was declared deprecated ("__shfl_down() is deprecated in favor of __shfl_down_sync() and may be removed in a future release (Use -Wno-deprecated-declarations to suppress this warning).")
          detected during instantiation of "T tensorflow::CudaShuffleDownSync(unsigned int, T, unsigned int, int) [with T=tensorflow::uint16]" 
/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_kernel_helper.h(86): here

/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(328): warning: function "__shfl_xor(int, int, int)"
/usr/local/cuda-9.0/bin/../targets/x86_64-linux/include/sm_30_intrinsics.hpp(221): here was declared deprecated ("__shfl_xor() is deprecated in favor of __shfl_xor_sync() and may be removed in a future release (Use -Wno-deprecated-declarations to suppress this warning).")
          detected during instantiation of "T tensorflow::CudaShuffleXorSync(unsigned int, T, int, int) [with T=tensorflow::uint16]" 
/home/pia/py27/local/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_kernel_helper.h(92): here

71 errors detected in the compilation of "/tmp/tmpxft_000033c3_00000000-6_data_augmentation.cu.cpp1.ii".
Makefile:63: recipe for target 'preprocessing' failed
make: *** [preprocessing] Error 1

@Iamanorange
Copy link

Try CUDA 9?
Make sure your cuda, nvcc and tensorflow have compatible versions.
e.g.
cuda 10 with tf 1.13-1.14,
cuda 9 with tf 1.5-1.12,
cuda 8 with tf below 1.4.
Unless you are using a custom tensorflow build.

@PiaCuk
Copy link

PiaCuk commented Mar 19, 2019

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

~$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Sep__1_21:08:03_CDT_2017
Cuda compilation tools, release 9.0, V9.0.176

Tensorflow is 1.9.0, installed with pip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants