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

undefined symbol: _ZN10tensorflow16CorrelationGrad #43

Open
irwinherrmann opened this issue Jul 15, 2018 · 16 comments
Open

undefined symbol: _ZN10tensorflow16CorrelationGrad #43

irwinherrmann opened this issue Jul 15, 2018 · 16 comments

Comments

@irwinherrmann
Copy link

Env:
cuda: 9.0
cudnn: 9.0
tensorflow: 1.8.0
Ubuntu 16.04

I followed the instructions in Wxjwjj's post. Still get errors.

File "/home/charles/Libraries/anaconda2/envs/tensorflow1.2/lib/python2.7/site-packages/tensorflow/python/framework/load_library.py", line 64, in load_op_library
None, None, error_msg, error_code)
tensorflow.python.framework.errors_impl.NotFoundError: src/ops/build/correlation.so: undefined symbol: _ZN10tensorflow16CorrelationGradAERKN5Eigen9GpuDeviceEiiiiiiiiiiiiiiiiiPKfS5_Pf

This is after commenting out -DGOOGLE_CUDA=1. With that, I get the following error during the make process:

48 errors detected in the compilation of "/tmp/tmpxft_000076b3_00000000-7_data_augmentation.cu.cpp1.ii".

@honeygupta
Copy link

For me, it gave this error if I used any tensorflow version other than 1.2.

@Iamanorange
Copy link

DO NOT COMMENT -DGOOGLE_CUDA=1, or you will lose GPU support.

If your error mentioned:

error: calling a constexpr __host__ function("xxxx") from a __device__ function("CudaAtomicAdd") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

You can try add flag '--expt-relaxed-constexpr' to GPUCC in Makefile:
GPUCC = nvcc --expt-relaxed-constexpr

If it's not fixed, can you paste full error message here?

@irwinherrmann
Copy link
Author

nvcc --expt-relaxed-constexpr -g -std=c++11 -Ipython -c "import tensorflow; print(tensorflow.sysconfig.get_include())" -I"/usr/local/cuda/include" -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
/usr/lib/gcc/x86_64-linux-gnu/5/include/emmintrin.h(1294): error: expression must have arithmetic, unscoped enum, or pointer type

/usr/lib/gcc/x86_64-linux-gnu/5/include/emmintrin.h(1300): error: expression must have arithmetic, unscoped enum, or pointer type

/usr/lib/gcc/x86_64-linux-gnu/5/include/emmintrin.h(1306): error: expression must have arithmetic, unscoped enum, or pointer type

/usr/lib/gcc/x86_64-linux-gnu/5/include/emmintrin.h(1312): error: expression must have arithmetic, unscoped enum, or pointer type

/usr/lib/gcc/x86_64-linux-gnu/5/include/emmintrin.h(1318): error: expression must have arithmetic, unscoped enum, or pointer type

/usr/lib/gcc/x86_64-linux-gnu/5/include/emmintrin.h(1324): error: expression must have arithmetic, unscoped enum, or pointer type

/usr/lib/gcc/x86_64-linux-gnu/5/include/emmintrin.h(1330): error: expression must have arithmetic, unscoped enum, or pointer type

/usr/lib/gcc/x86_64-linux-gnu/5/include/emmintrin.h(1336): error: expression must have arithmetic, unscoped enum, or pointer type

/usr/lib/gcc/x86_64-linux-gnu/5/include/emmintrin.h(1342): error: expression must have arithmetic, unscoped enum, or pointer type

/usr/lib/gcc/x86_64-linux-gnu/5/include/smmintrin.h(270): error: expression must have arithmetic, unscoped enum, or pointer type

/usr/lib/gcc/x86_64-linux-gnu/5/include/smmintrin.h(798): error: expression must have arithmetic, unscoped enum, or pointer type

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx2intrin.h(233): error: expression must have arithmetic, unscoped enum, or pointer type

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx2intrin.h(240): error: expression must have arithmetic, unscoped enum, or pointer type

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx2intrin.h(247): error: expression must have arithmetic, unscoped enum, or pointer type

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx2intrin.h(254): error: expression must have arithmetic, unscoped enum, or pointer type

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx2intrin.h(261): error: expression must have arithmetic, unscoped enum, or pointer type

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx2intrin.h(268): error: expression must have arithmetic, unscoped enum, or pointer type

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx2intrin.h(275): error: expression must have arithmetic, unscoped enum, or pointer type

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx2intrin.h(282): error: expression must have arithmetic, unscoped enum, or pointer type

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(96): error: identifier "x" is undefined

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(136): error: identifier "x" is undefined

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(136): error: class "Eigen::half" has no member "x"

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(221): error: class "Eigen::half" has no member "x"

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(221): error: class "Eigen::half" has no member "x"

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(274): error: class "__half" has no member "x"

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(300): error: class "__half" has no member "x"

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(311): error: class "__half" has no member "x"

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(320): error: class "__half" has no member "x"

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(329): error: class "__half" has no member "x"

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(333): error: class "__half" has no member "x"

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(350): error: class "__half" has no member "x"

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(362): error: class "__half" has no member "x"

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(370): error: class "Eigen::half" has no member "x"

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(376): error: class "Eigen::half" has no member "x"

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(385): error: class "Eigen::half" has no member "x"

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(385): error: class "Eigen::half" has no member "x"

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(522): error: class "Eigen::half" has no member "x"

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(522): error: class "Eigen::half" has no member "x"

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(554): error: class "Eigen::half" has no member "x"

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/src/Tensor/TensorRandom.h(87): error: class "Eigen::half" has no member "x"

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/src/Tensor/TensorRandom.h(89): error: class "Eigen::half" has no member "x"

/usr/include/c++/5/bits/stl_tree.h(1440): error: identifier "_Compare" is undefined

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/google/protobuf/map.h(681): warning: type qualifier on return type is meaningless

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/partial_tensor_shape.h(77): warning: integer conversion resulted in a change of sign

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/framework/op_kernel.h(322): warning: type qualifier on return type is meaningless

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_kernel_helper.h(235): error: class "Eigen::half" has no member "x"

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_kernel_helper.h(237): error: class "Eigen::half" has no member "x"

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_kernel_helper.h(242): error: class "Eigen::half" has no member "x"

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_kernel_helper.h(244): error: class "Eigen::half" has no member "x"

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_kernel_helper.h(277): error: class "Eigen::half" has no member "x"

/home/charles/Libraries/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_kernel_helper.h(294): error: class "Eigen::half" has no member "x"

48 errors detected in the compilation of "/tmp/tmpxft_00003273_00000000-7_data_augmentation.cu.cpp1.ii".
Makefile:62: recipe for target 'preprocessing' failed
make: *** [preprocessing] Error 2

@Po-Hsuan-Huang
Copy link

Po-Hsuan-Huang commented Dec 5, 2018

@Iamanorange

I have the same error,

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

I modified my Makefile based on issue#45

Edit Makefile:
from
CFLAGS = -std=c++11 -I$(TF_INC) -I"$(CUDA_HOME)/include" -DGOOGLE_CUDA=1
to
CFLAGS = -std=c++11 -I$(TF_INC) -I"$(CUDA_HOME)/.." -DGOOGLE_CUDA=1

issue#28

-D_GLIBCXX_USE_CXX11_ABI=0

TF_LIB = python -c "import tensorflow; print(tensorflow.sysconfig.get_lib())"
CGPUFLAGS = -L$(CUDA_HOME)/lib -L$(CUDA_HOME)/lib64 -lcudart -L$(TF_LIB) -ltensorflow_framework

my environment :

Ubuntu 18.04
cuda 10.0
gcc 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04)

packages in conda environment

Name Version Build Channel
cudnn 7.2.1 cuda9.2_0
cudatoolkit 9.2 0
tensorflow 1.11.0 gpu_py36h9c9050a_0
tensorflow-base 1.11.0 gpu_py36had579c0_0
tensorflow-gpu 1.11.0 h0d30ee6_0

But if I remove -DGOOGLE_CUDA=1, the error is gone, but I encounter another error

tensorflow.python.framework.errors_impl.NotFoundError: /home/pohsuanh/Documents/flownet2-tf/src/./ops/build/correlation.so: undefined symbol: _ZN10tensorflow16CorrelationGradAERKN5Eigen9GpuDeviceEiiiiiiiiiiiiiiiiiPKfS5_Pf

@Iamanorange
Copy link

You error seems different from irwinherrmann's (you have only 1 error for target preprocessing but he has 48). Can you paste your full error message?

The Makefile should be OK. '-DGOOGLE_CUDA=1' is needed because the OPs was targeted on CUDA.

For environment, CUDA 10 and gcc 7 may be too high. I'm not sure if they works. You can try to build with gcc 5 and cuda 9.x.

I don't use conda. Not sure if it works, too.

@Po-Hsuan-Huang
Copy link

nvcc --expt-relaxed-constexpr -g -std=c++11 -Ipython3 -c "import tensorflow; print(tensorflow.sysconfig.get_include())" -I"/usr/local/cuda/.." -DGOOGLE_CUDA=1 -D_MWAITXINTRIN_H_INCLUDED -D_FORCE_INLINES -D__STRICT_ANSI__ -c src/ops/preprocessing/kernels/data_augmentation.cu.cc -x cu -Xcompiler -fPIC -o src/ops/build/data_augmentation.o
In file included from /home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/Core:269:0,
from /home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/unsupported/Eigen/CXX11/Tensor:14,
from /home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/third_party/eigen3/unsupported/Eigen/CXX11/Tensor:1,
from /home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h:19,
from src/ops/preprocessing/kernels/augmentation_base.h:4,
from src/ops/preprocessing/kernels/data_augmentation.cu.cc:5:
/usr/local/cuda-10.0/bin/..//include/host_defines.h:54:2: warning: #warning "host_defines.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
#warning "host_defines.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead."
^~~~~~~
/home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/absl/strings/string_view.h(501): error: constexpr function return is non-constant

/home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/google/protobuf/arena_impl.h(55): warning: integer conversion resulted in a change of sign

/home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/google/protobuf/arena_impl.h(309): warning: integer conversion resulted in a change of sign

/home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/google/protobuf/arena_impl.h(310): warning: integer conversion resulted in a change of sign

/home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/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/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsHalf.h(34): here

/home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/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/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsHalf.h(34): here

/home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/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/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsHalf.h(38): here

/home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/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/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsHalf.h(38): here

/home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/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/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsHalf.h(42): here

/home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/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/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsHalf.h(42): here

/home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/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/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/arch/CUDA/CudaSpecialFunctions.h(120): here

/home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/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/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/arch/CUDA/CudaSpecialFunctions.h(120): here

/home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/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/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/arch/CUDA/CudaSpecialFunctions.h(135): here

/home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/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/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/arch/CUDA/CudaSpecialFunctions.h(135): here

/home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/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/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/arch/CUDA/CudaSpecialFunctions.h(154): here

/home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/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/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/arch/CUDA/CudaSpecialFunctions.h(154): here

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

@Iamanorange
Copy link

Add -DNDEBUG to CFLAGS.

For more information: tensorflow/tensorflow#22766

@Po-Hsuan-Huang
Copy link

Po-Hsuan-Huang commented Dec 5, 2018

So from my previous full error message I found this :

/home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/absl/string/string_view.h(501): error: constexpr function return is non-constant

Add -DNDEBUG shows all problems seem to result from

/usr/local/cuda-10.0/bin/..//include/host_defines.h:54:2: warning: #warning "host_defines.h is an internal header file and must not be used directly.  This file will be removed in a future CUDA release.  Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]

Should I concern about the warning ?

/home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/absl/strings/string_view.h(501): warning: expression has no effect

/home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/google/protobuf/arena_impl.h(55): warning: integer conversion resulted in a change of sign

/home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/google/protobuf/arena_impl.h(309): warning: integer conversion resulted in a change of sign

/home/pohsuanh/miniconda3/envs/flownet/lib/python3.6/site-packages/tensorflow/include/google/protobuf/arena_impl.h(310): warning: integer conversion resulted in a change of sign

If I regardless run the test.py anyways, it kind of passed.

2018-12-04 19:17:02.910856: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1103] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:1 with 8789 MB memory) -> physical GPU (device: 1, name: GeForce GTX 1080 Ti, pci bus id: 0000:65:00.0, compute capability: 6.1)
max flow: 16.5984
flow range:
u = -11.967 .. 7.694
v = -12.615 .. 13.261

@Iamanorange you rock !

@Iamanorange
Copy link

Congratulation.

The only error is "constexpr function return is non-constant" and can be ignored by -DNDEBUG.
The rest are just warnings, and can be ignored by everyone.

@leesky1c
Copy link

@Iamanorange

Hello, I still got some problems following the steps above. Here are some logs after compiling and running the test.py.

`python -m src.flownet2.test --input_a data/samples/0img0.ppm --input_b data/samples/0img1.ppm --out ./
WARNING:tensorflow:From src/net.py:22: get_or_create_global_step (from tensorflow.contrib.framework.python.ops.variables) is deprecated and will be removed in a future version.
Instructions for updating:
Please switch to tf.train.get_or_create_global_step
WARNING:tensorflow:From src/flownet_cs/flownet_cs.py:26: calling reduce_sum (from tensorflow.python.ops.math_ops) with keep_dims is deprecated and will be removed in a future version.
Instructions for updating:
keep_dims is deprecated, use keepdims instead
2018-12-31 18:04:12.856624: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
Traceback (most recent call last):
  File "/home/lsk/miniconda2/envs/p3d/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/home/lsk/miniconda2/envs/p3d/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/lsk/Saliency/flownet2-tf/src/flownet2/test.py", line 51, in <module>
    main()
  File "/home/lsk/Saliency/flownet2-tf/src/flownet2/test.py", line 18, in main
    out_path=FLAGS.out,
  File "src/net.py", line 68, in test
    saver.restore(sess, checkpoint)
  File "/home/lsk/miniconda2/envs/p3d/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1802, in restore
    {self.saver_def.filename_tensor_name: save_path})
  File "/home/lsk/miniconda2/envs/p3d/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 900, in run
    run_metadata_ptr)
  File "/home/lsk/miniconda2/envs/p3d/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1135, in _run
    feed_dict_tensor, options, run_metadata)
  File "/home/lsk/miniconda2/envs/p3d/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1316, in _do_run
    run_metadata)
  File "/home/lsk/miniconda2/envs/p3d/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1335, in _do_call
    raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: No OpKernel was registered to support Op 'FlowWarp' with these attrs.  Registered devices: [CPU], Registered kernels:
  device='GPU'

	 [[Node: FlowNet2/FlowWarp = FlowWarp[](ExpandDims_1, FlowNet2/FlowNetSD/ResizeBilinear)]]

Caused by op u'FlowNet2/FlowWarp', defined at:
  File "/home/lsk/miniconda2/envs/p3d/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/home/lsk/miniconda2/envs/p3d/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/lsk/Saliency/flownet2-tf/src/flownet2/test.py", line 51, in <module>
    main()
  File "/home/lsk/Saliency/flownet2-tf/src/flownet2/test.py", line 18, in main
    out_path=FLAGS.out,
  File "src/net.py", line 62, in test
    predictions = self.model(inputs, training_schedule)
  File "src/flownet2/flownet2.py", line 33, in model
    flow_warp_sd = flow_warp(inputs['input_b'], net_sd_predictions['flow'])
  File "src/flow_warp.py", line 8, in flow_warp
    return _flow_warp_ops.flow_warp(image, flow)
  File "<string>", line 31, in flow_warp
  File "/home/lsk/miniconda2/envs/p3d/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 328, in apply_op
    op_type_name, name, **keywords)
  File "/home/lsk/miniconda2/envs/p3d/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper
    op_def=op_def)
  File "/home/lsk/miniconda2/envs/p3d/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 3392, in create_op
    op_def=op_def)
  File "/home/lsk/miniconda2/envs/p3d/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1718, in __init__
    self._traceback = self._graph._extract_stack()  # pylint: disable=protected-access

InvalidArgumentError (see above for traceback): No OpKernel was registered to support Op 'FlowWarp' with these attrs.  Registered devices: [CPU], Registered kernels:
  device='GPU'

	 [[Node: FlowNet2/FlowWarp = FlowWarp[](ExpandDims_1, FlowNet2/FlowNetSD/ResizeBilinear)]]
`

It seems that the Ops have not been registered to tensorflow, right?

@Iamanorange
Copy link

@leeskyed
Use GPU.

@momo1986
Copy link

I met similar problem:
OS: Ubuntu 18.04
CUDA: 9.0
Python: 2.6
Tensorflow: 1.12
Head of Makefile's sceenshot:
image
Error:
image

@Iamanorange
Copy link

Iamanorange commented Feb 18, 2019

#28 (comment)

Edit:
You are using Python 2.6, seriously?

@momo1986
Copy link

#28 (comment)

Edit:
You are using Python 2.6, seriously?

Hi, Sorry. I am using Python 3.6

Refer to comment 28:

Looks my issue has gone.

Thanks a lot!
Regards!

@bestzxp
Copy link

bestzxp commented Apr 30, 2019

I compiled the ops successfully, but I got a really large number of flow,
> physical GPU (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:49:00.0, compute capability: 6.1) max flow: 44159.5273 flow range: u = -12376.466 .. 9278.480 v = -767.681 .. 43463.082
the compile code is that
`# Makefile

TF_INC = python -c "import tensorflow; print(tensorflow.sysconfig.get_include())"
TF_LIB = python -c "import tensorflow; print(tensorflow.sysconfig.get_lib())"

ifndef CUDA_HOME
CUDA_HOME := /usr/local/cuda
endif

CC = gcc -O2 -pthread
CXX = g++

GPUCC = nvcc

GPUCC = nvcc --expt-relaxed-constexpr
CFLAGS = -std=c++11 -I$(TF_INC) -I"$(CUDA_HOME)/.." -DGOOGLE_CUDA=1 -DNDEBUG -D_GLIBCXX_USE_CXX11_ABI=0

GPUCFLAGS = -c --expt-relaxed-constexpr

GPUCFLAGS = -c -gencode=arch=compute_61,code=sm_61
LFLAGS = -pthread -shared -fPIC
GPULFLAGS = -x cu -Xcompiler -fPIC
CGPUFLAGS = -L$(CUDA_HOME)/lib -L$(CUDA_HOME)/lib64 -lcudart -L$(TF_LIB) -ltensorflow_framework

OUT_DIR = src/ops/build
PREPROCESSING_SRC = "src/ops/preprocessing/preprocessing.cc" "src/ops/preprocessing/kernels/flow_augmentation.cc" "src/ops/preprocessing/kernels/augmentation_base.cc" "src/ops/preprocessing/kernels/data_augmentation.cc"
GPU_SRC_DATA_AUG = src/ops/preprocessing/kernels/data_augmentation.cu.cc
GPU_SRC_FLOW = src/ops/preprocessing/kernels/flow_augmentation_gpu.cu.cc
GPU_PROD_DATA_AUG = $(OUT_DIR)/data_augmentation.o
GPU_PROD_FLOW = $(OUT_DIR)/flow_augmentation_gpu.o
PREPROCESSING_PROD = $(OUT_DIR)/preprocessing.so

DOWNSAMPLE_SRC = "src/ops/downsample/downsample_kernel.cc" "src/ops/downsample/downsample_op.cc"
GPU_SRC_DOWNSAMPLE = src/ops/downsample/downsample_kernel_gpu.cu.cc
GPU_PROD_DOWNSAMPLE = $(OUT_DIR)/downsample_kernel_gpu.o
DOWNSAMPLE_PROD = $(OUT_DIR)/downsample.so

CORRELATION_SRC = "src/ops/correlation/correlation_kernel.cc" "src/ops/correlation/correlation_grad_kernel.cc" "src/ops/correlation/correlation_op.cc"
GPU_SRC_CORRELATION = src/ops/correlation/correlation_kernel.cu.cc
GPU_SRC_CORRELATION_GRAD = src/ops/correlation/correlation_grad_kernel.cu.cc
GPU_SRC_PAD = src/ops/correlation/pad.cu.cc
GPU_PROD_CORRELATION = $(OUT_DIR)/correlation_kernel_gpu.o
GPU_PROD_CORRELATION_GRAD = $(OUT_DIR)/correlation_grad_kernel_gpu.o
GPU_PROD_PAD = $(OUT_DIR)/correlation_pad_gpu.o
CORRELATION_PROD = $(OUT_DIR)/correlation.so

FLOWWARP_SRC = "src/ops/flow_warp/flow_warp_op.cc" "src/ops/flow_warp/flow_warp.cc" "src/ops/flow_warp/flow_warp_grad.cc"
GPU_SRC_FLOWWARP = "src/ops/flow_warp/flow_warp.cu.cc"
GPU_SRC_FLOWWARP_GRAD = "src/ops/flow_warp/flow_warp_grad.cu.cc"
GPU_PROD_FLOWWARP = "$(OUT_DIR)/flow_warp_gpu.o"
GPU_PROD_FLOWWARP_GRAD = "$(OUT_DIR)/flow_warp_grad_gpu.o"
FLOWWARP_PROD = "$(OUT_DIR)/flow_warp.so"

ifeq ($(OS),Windows_NT)
detected_OS := Windows
else
detected_OS := $(shell sh -c 'uname -s 2>/dev/null || echo not')
endif
ifeq ($(detected_OS),Darwin) # Mac OS X
CGPUFLAGS += -undefined dynamic_lookup
endif
ifeq ($(detected_OS),Linux)
CFLAGS += -D_MWAITXINTRIN_H_INCLUDED -D_FORCE_INLINES -D__STRICT_ANSI__ -D_GLIBCXX_USE_CXX11_ABI=0
endif

all: preprocessing downsample correlation flowwarp
`

thanks a lot!

@fperezgamonal
Copy link

Hello,

Months ago I compiled successfully the custom ops in a machine running Ubuntu 18.04LTS, CUDA 10 and Tensorflow-gpu 1.13.1.
Nevertheless, a colleague in the research group has granted me access to her maching to run my experiments and experience a very similar problem to @irwinherrmann .
After trying all the suggested in this issue and related ones without success, I am trying to write down the differences in configurations between both machines so I may figure out what is wrong.

The configuration of the new machine is as follows:

  • Ubuntu 16.04 LTS
  • Virualenvwrapper for Python3 (activated via 'workon virtual-py3')
  • CUDA 9.0
  • CUDNN 7.6.1
  • GCC 5.4.0
  • Tensorflow-gpu 1.12.0 (I've checked that the GPU is properly detected by Tensorflow inside the virtual environment)

Like I've said above, I have tried all the suggestions in this post and also in similar issues but I've also tried changing the version of GCC but 6.5 seems too high for CUDA 9 (will try 6.0 instead).
Finally, I have tried to search for each error separately to come up with a gradual solution to no avail and double-check that the CUDA version .

Here's the complete error log and my Makefile which is very similar to the one that worked for my first installation with Cuda 10, etc.
Makefile (only config lines)

# Makefile

TF_INC := $(shell python -c 'import tensorflow as tf; print(tf.sysconfig.get_include())')
TF_LIB := $(shell python -c 'import tensorflow as tf; print(tf.sysconfig.get_lib())')
$(info "$$TF_INC is '${TF_INC}'")
$(info "$$TF_LIB is '${TF_LIB}'")
ifndef CUDA_HOME
    CUDA_HOME := /usr/local/cuda
endif
$(info "$$CUDA_HOME is '${CUDA_HOME}'")
CC        = gcc -O2 -pthread
CXX       = g++
GPUCC     = nvcc --expt-relaxed-constexpr
CFLAGS    = -std=c++11 -I$(TF_INC) -I"$(CUDA_HOME)/.." -DGOOGLE_CUDA=1 -DNDEBUG
GPUCFLAGS = -c
LFLAGS    = -pthread -shared -fPIC
GPULFLAGS = -x cu -Xcompiler -fPIC
CGPUFLAGS = -L$(CUDA_HOME)/lib -L$(CUDA_HOME)/lib64 -lcudart -L$(TF_LIB) -ltensorflow_framework

Entire Makefile (added .txt so I could upload it)

Error log

"$TF_INC is '/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include'"
"$TF_LIB is '/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow'"
"$CUDA_HOME is '/usr/local/cuda-9.0'"
nvcc --expt-relaxed-constexpr -g -std=c++11 -I/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include -I"/usr/local/cuda-9.0/.." -DGOOGLE_CUDA=1 -DNDEBUG -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/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(64): error: identifier "__half_raw" is undefined

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(65): error: identifier "__half_raw" is undefined

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(66): error: identifier "__half_raw" is undefined

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(68): error: not a class or struct name

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(71): error: identifier "__half_raw" is undefined

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(70): error: "__half_raw" is not a nonstatic data member or base class of class "Eigen::half_impl::half_base"

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(71): error: "__half_raw" is not a nonstatic data member or base class of class "Eigen::half_impl::half_base"

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(73): error: "__half_raw" is not a nonstatic data member or base class of class "Eigen::half_impl::half_base"

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(87): error: identifier "__half_raw" is undefined

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(103): error: identifier "x" is undefined

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(143): error: identifier "x" is undefined

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(143): error: class "Eigen::half" has no member "x"

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(282): error: class "Eigen::half" has no member "x"

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(282): error: class "Eigen::half" has no member "x"

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(333): error: identifier "__half_raw" is undefined

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(334): error: identifier "__half_raw" is undefined

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(344): error: identifier "__half_raw" is undefined

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(347): error: identifier "__half_raw" is undefined

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(347): error: expected an expression

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(400): error: identifier "__half_raw" is undefined

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(432): error: class "Eigen::half" has no member "x"

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(438): error: class "Eigen::half" has no member "x"

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(447): error: class "Eigen::half" has no member "x"

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(447): error: class "Eigen::half" has no member "x"

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(497): error: identifier "hfloor" is undefined

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(504): error: identifier "hceil" is undefined

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(591): error: class "Eigen::half" has no member "x"

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(591): error: class "Eigen::half" has no member "x"

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(623): error: class "Eigen::half" has no member "x"

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/Half.h(637): error: identifier "__shfl_xor_sync" is undefined

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/PacketMathHalf.h(46): error: no suitable user-defined conversion from "const Eigen::half" to "__half" exists

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/PacketMathHalf.h(54): error: no suitable user-defined conversion from "const Eigen::half" to "__half" exists

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/PacketMathHalf.h(54): error: no suitable user-defined conversion from "const Eigen::half" to "__half" exists

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/PacketMathHalf.h(58): error: no suitable user-defined conversion from "const Eigen::half" to "__half" exists

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/PacketMathHalf.h(58): error: no suitable user-defined conversion from "const Eigen::half" to "__half" exists

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/PacketMathHalf.h(75): error: no suitable user-defined conversion from "const Eigen::half" to "__half" exists

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/PacketMathHalf.h(75): error: no suitable user-defined conversion from "const Eigen::half" to "__half" exists

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/PacketMathHalf.h(84): error: no suitable user-defined conversion from "const Eigen::half" to "__half" exists

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/PacketMathHalf.h(84): error: no suitable user-defined conversion from "const Eigen::half" to "__half" exists

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/PacketMathHalf.h(89): error: no suitable user-defined conversion from "const Eigen::half" to "__half" exists

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/PacketMathHalf.h(89): error: no suitable user-defined conversion from "const Eigen::half" to "__half" exists

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/PacketMathHalf.h(123): error: no instance of overloaded function "__half2float" matches the argument list
            argument types are: (const Eigen::half)

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/PacketMathHalf.h(124): error: no suitable user-defined conversion from "const Eigen::half" to "__half" exists

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/TypeCasting.h(59): error: no instance of overloaded function "__half2float" matches the argument list
            argument types are: (const Eigen::half)

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/src/Tensor/TensorRandom.h(87): error: class "Eigen::half" has no member "x"

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/src/Tensor/TensorRandom.h(89): error: class "Eigen::half" has no member "x"

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/absl/strings/string_view.h(496): warning: expression has no effect

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/google/protobuf/arena_impl.h(55): warning: integer conversion resulted in a change of sign

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/google/protobuf/arena_impl.h(309): warning: integer conversion resulted in a change of sign

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/google/protobuf/arena_impl.h(310): warning: integer conversion resulted in a change of sign

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(136): error: identifier "__shfl_sync" is undefined

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(194): error: identifier "__syncwarp" is undefined

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(203): error: identifier "__ballot_sync" is undefined

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(214): error: identifier "__any_sync" is undefined

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(225): error: identifier "__all_sync" is undefined

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(106): error: invalid redeclaration of type name "__half"
/usr/include/cuda_fp16.h(86): here

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.h(107): error: invalid redeclaration of type name "__half2"
/usr/include/cuda_fp16.h(90): here

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

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

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

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

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

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.hpp(145): error: class "__half" has no member "__x"

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.hpp(146): error: class "__half" has no member "__x"

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.hpp(156): error: class "__half" has no member "__x"

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.hpp(159): error: class "__half" has no member "__x"

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

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

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

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

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

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

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.hpp(1793): error: invalid redeclaration of type name "half"
/usr/include/cuda_fp16.h(93): here

/usr/local/cuda-9.0/../cuda/include/cuda_fp16.hpp(1794): error: invalid redeclaration of type name "half2"
/usr/include/cuda_fp16.h(94): here

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/tensorflow/core/util/cuda_kernel_helper.h(80): error: more than one instance of overloaded function "tensorflow::CudaShuffleUpSync" matches the argument list:
            function template "T tensorflow::CudaShuffleUpSync(unsigned int, T, unsigned int, int)"
            function "tensorflow::CudaShuffleUpSync(unsigned int, double, unsigned int, int)"
            function "tensorflow::CudaShuffleUpSync(unsigned int, Eigen::half, int, int)"
            argument types are: (unsigned int, tensorflow::uint16, int, int)

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/tensorflow/core/util/cuda_kernel_helper.h(86): error: more than one instance of overloaded function "tensorflow::CudaShuffleDownSync" matches the argument list:
            function template "T tensorflow::CudaShuffleDownSync(unsigned int, T, unsigned int, int)"
            function "tensorflow::CudaShuffleDownSync(unsigned int, double, unsigned int, int)"
            function "tensorflow::CudaShuffleDownSync(unsigned int, Eigen::half, int, int)"
            argument types are: (unsigned int, tensorflow::uint16, int, int)

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/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/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsHalf.h(34): here

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/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/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsHalf.h(34): here

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/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/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsHalf.h(38): here

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/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/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsHalf.h(38): here

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/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/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsHalf.h(42): here

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/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/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsHalf.h(42): here

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/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/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/arch/CUDA/CudaSpecialFunctions.h(120): here

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/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/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/arch/CUDA/CudaSpecialFunctions.h(120): here

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/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/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/arch/CUDA/CudaSpecialFunctions.h(135): here

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/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/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/arch/CUDA/CudaSpecialFunctions.h(135): here

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/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/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/arch/CUDA/CudaSpecialFunctions.h(154): here

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/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/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/arch/CUDA/CudaSpecialFunctions.h(154): here

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(461): error: class "Eigen::half" has no member "x"

/home/pvitoria/.virtualenvs/virtual-py3/lib/python3.5/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(470): error: class "Eigen::half" has no member "x"

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

My only guess at this point is that the error may be related to working with a virtual environment and some variable not being set properly. However, it seems to link to the proper TF_LIB and TF_INC (see informational prints on the first lines of the log).

Any help would be appreciated,
Thanks in advance,

Cheers.

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

8 participants