Is flownet2-tf cuda 10 compatible?
Two typical ERRORs while running make -j8.
-
~/.local/lib/python3.6/site-packages/tensorflow/include/absl/strings/string_view.h(496): error: constexpr function return is non-constant
-
~/.local/lib/python3.6/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(532): error: calling a constexpr host function("imag") from a device function("CudaAtomicAdd") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
Did anybody meet the same issue before?
Yes, CUDA 10 is fine.
-
Add
-DNDEBUGto CFLAGS. For more information: https://github.com/tensorflow/tensorflow/issues/22766 -
Add
--expt-relaxed-constexprto GPUCFLAGS as it required.
@Iamanorange you made my day! Maybe the MakeFile should be updated for installation ? Or should the readme be update with necessary information so that the users don't have to stumble upon multiple github issue threads ?
I am having this error while doing make all:
nvcc -g -std=c++11 -Ipython -c "import tensorflow; print(tensorflow.sysconfig.get_include())" -I"/usr/local/cuda-10.1/include" -DGOOGLE_CUDA=1 -DNDEBUG -D_MWAITXINTRIN_H_INCLUDED -D_FORCE_INLINES -D__STRICT_ANSI__ -D_GLIBCXX_USE_CXX11_ABI=0 -c -gencode=arch=compute_75,code=sm_75 FlowNet2_src/ops/preprocessing/kernels/data_augmentation.cu.cc -x cu -Xcompiler -fPIC -o FlowNet2_src/ops/build/data_augmentation.o
In file included from /home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/util/ConfigureVectorization.h:384:0,
from /home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/Core:22,
from /home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/Tensor:14,
from /home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/third_party/eigen3/unsupported/Eigen/CXX11/Tensor:1,
from /home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/tensorflow/core/framework/tensor_types.h:19,
from FlowNet2_src/ops/preprocessing/kernels/augmentation_base.h:4,
from FlowNet2_src/ops/preprocessing/kernels/data_augmentation.cu.cc:5:
/usr/local/cuda-10.1/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 direct
^
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1288): warning: calling a constexpr host function("real") from a host device function("abs") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1288): warning: calling a constexpr host function("imag") from a host device function("abs") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1288): warning: calling a constexpr host function from a host device function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1288): warning: calling a constexpr host function from a host device function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1293): warning: calling a constexpr host function("real") from a host device function("abs") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1293): warning: calling a constexpr host function("imag") from a host device function("abs") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1293): warning: calling a constexpr host function from a host device function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1293): warning: calling a constexpr host function from a host device function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1317): warning: calling a constexpr host function("real") from a host device function("exp") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1318): warning: calling a constexpr host function("imag") from a host device function("exp") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1319): warning: calling a constexpr host function("imag") from a host device function("exp") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1317): warning: calling a constexpr host function from a host device function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1318): warning: calling a constexpr host function from a host device function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1319): warning: calling a constexpr host function from a host device function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1320): warning: calling a constexpr host function from a host device function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1325): warning: calling a constexpr host function("real") from a host device function("exp") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1326): warning: calling a constexpr host function("imag") from a host device function("exp") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1327): warning: calling a constexpr host function("imag") from a host device function("exp") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1325): warning: calling a constexpr host function from a host device function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1326): warning: calling a constexpr host function from a host device function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1327): warning: calling a constexpr host function from a host device function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1328): warning: calling a constexpr host function from a host device function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/src/Tensor/TensorRandom.h(133): warning: calling a constexpr host function from a host device function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/src/Tensor/TensorRandom.h(138): warning: calling a constexpr host function from a host device function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/src/Tensor/TensorRandom.h(208): warning: calling a constexpr host function from a host device function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/src/Tensor/TensorRandom.h(213): warning: calling a constexpr host function from a host device function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/tensorflow/core/lib/bfloat16/bfloat16.h(74): warning: calling a constexpr host function("real") from a host device function("bfloat16") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/tensorflow/core/lib/bfloat16/bfloat16.h(74): warning: calling a constexpr host function from a host device function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/tensorflow/core/lib/bfloat16/bfloat16.h(77): warning: calling a constexpr host function("real") from a host device function("bfloat16") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/tensorflow/core/lib/bfloat16/bfloat16.h(77): warning: calling a constexpr host function from a host device function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/tensorflow/core/lib/bfloat16/bfloat16.h(166): warning: calling a constexpr host function from a host device function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/tensorflow/core/lib/bfloat16/bfloat16.h(170): warning: calling a constexpr host function from a host device function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/absl/strings/string_view.h(496): warning: expression has no effect
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/google/protobuf/arena_impl.h(55): warning: integer conversion resulted in a change of sign
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/google/protobuf/arena_impl.h(309): warning: integer conversion resulted in a change of sign
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/google/protobuf/arena_impl.h(310): warning: integer conversion resulted in a change of sign
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(364): warning: calling a constexpr host function from a host device function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(374): warning: calling a constexpr host function from a host device function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(523): error: calling a constexpr host function("real") from a device function("CudaAtomicAdd") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(524): error: calling a constexpr host function("imag") from a device function("CudaAtomicAdd") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(530): error: calling a constexpr host function("real") from a device function("CudaAtomicAdd") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
/home/ivlab/anaconda2/envs/tuto/lib/python3.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h(531): error: calling a constexpr host function("imag") from a device function("CudaAtomicAdd") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
4 errors detected in the compilation of "/tmp/tmpxft_0000685c_00000000-6_data_augmentation.cu.cpp1.ii". Makefile:62: recipe for target 'preprocessing' failed make: *** [preprocessing] Error 1