-
Notifications
You must be signed in to change notification settings - Fork 197
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
Cannot compile on ubuntu 18.04 #76
Comments
OK. make all |
Use gcc 5. |
Still, I have errors after using gcc-5 and g++-5: make all /home/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1255): 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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1255): 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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1255): 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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1260): 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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1260): 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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1260): 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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1260): 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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1285): 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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1286): 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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1287): 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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1285): 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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1286): 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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1287): 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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.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("exp") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this. /home/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1294): 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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1295): 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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1294): 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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1295): 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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1296): 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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/absl/strings/string_view.h(496): error: constexpr function return is non-constant /home/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/google/protobuf/arena_impl.h(55): warning: integer conversion resulted in a change of sign /home/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/google/protobuf/arena_impl.h(309): warning: integer conversion resulted in a change of sign /home/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/google/protobuf/arena_impl.h(310): warning: integer conversion resulted in a change of sign /home/mostafa/PythonEnvs/FlowNet2/local/lib/python2.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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.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/mostafa/PythonEnvs/FlowNet2/local/lib/python2.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. /home/mostafa/PythonEnvs/FlowNet2/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]" /home/mostafa/PythonEnvs/FlowNet2/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]" /home/mostafa/PythonEnvs/FlowNet2/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]" /home/mostafa/PythonEnvs/FlowNet2/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]" /home/mostafa/PythonEnvs/FlowNet2/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]" /home/mostafa/PythonEnvs/FlowNet2/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]" /home/mostafa/PythonEnvs/FlowNet2/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]" /home/mostafa/PythonEnvs/FlowNet2/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]" /home/mostafa/PythonEnvs/FlowNet2/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]" /home/mostafa/PythonEnvs/FlowNet2/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]" /home/mostafa/PythonEnvs/FlowNet2/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]" /home/mostafa/PythonEnvs/FlowNet2/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]" 5 errors detected in the compilation of "/tmp/tmpxft_000018f2_00000000-6_data_augmentation.cu.cpp1.ii". |
Thank you @Iamanorange , now the 'make all' works fine but I still have this error when running python test.py python test.py |
I have this error while compiling on Ubuntu 18.04. I just create a new environment and installed all the required packages, then run make all.
nvcc -g -std=c++11 -I
python -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.oIn file included from /usr/local/cuda/include/host_config.h:50:0,
from /usr/local/cuda/include/cuda_runtime.h:78,
from :0:
/usr/local/cuda/include/crt/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 6 are not supported!
#error -- unsupported GNU version! gcc versions later than 6 are not supported!
^~~~~
In file included from /home/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_kernel_helper.h:21:0,
from src/ops/preprocessing/kernels/data_augmentation.cu.cc:7:
/home/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h:32:10: fatal error: cuda/include/cuda.h: No such file or directory
#include "cuda/include/cuda.h"
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:62: recipe for target 'preprocessing' failed
make: *** [preprocessing] Error 1
(FlowNet2) mostafa@cansik:/mnt/MyData/WorkingCode/flownet2$ make all
nvcc -g -std=c++11 -I
python -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.oIn file included from /usr/local/cuda/include/host_config.h:50:0,
from /usr/local/cuda/include/cuda_runtime.h:78,
from :0:
/usr/local/cuda/include/crt/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 6 are not supported!
#error -- unsupported GNU version! gcc versions later than 6 are not supported!
^~~~~
In file included from /home/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_kernel_helper.h:21:0,
from src/ops/preprocessing/kernels/data_augmentation.cu.cc:7:
/home/mostafa/PythonEnvs/FlowNet2/local/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_device_functions.h:32:10: fatal error: cuda/include/cuda.h: No such file or directory
#include "cuda/include/cuda.h"
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:62: recipe for target 'preprocessing' failed
make: *** [preprocessing] Error 1
The text was updated successfully, but these errors were encountered: