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

cmake error #83

Open
electronicliujiang opened this issue Aug 15, 2020 · 1 comment
Open

cmake error #83

electronicliujiang opened this issue Aug 15, 2020 · 1 comment

Comments

@electronicliujiang
Copy link

************cmake ../csrc
-- The CXX compiler identification is GNU 7.5.0
-- The CUDA compiler identification is NVIDIA 10.0.130
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc -- works
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so found components: OpenGL EGL
-- Configuring done
-- Generating done
-- Build files have been written to: /media/zsf/D/lj/liujiang/dirt/dirt/build

**************make
Scanning dependencies of target rasterise
[ 14%] Building CXX object CMakeFiles/rasterise.dir/rasterise_egl.cpp.o
In file included from /media/zsf/D/lj/liujiang/dirt/dirt/csrc/rasterise_egl.cpp:24:0:
/home/zsf/anaconda3/envs/octopus/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h:3:2: warning: #warning "Deprecated header file, please either include the main Eigen/CXX11/Tensor header or the respective TensorDeviceGpu.h file" [-Wcpp]
#warning "Deprecated header file, please either include the main Eigen/CXX11/Tensor header or the respective TensorDeviceGpu.h file"
^~~~~~~
[ 28%] Building CUDA object CMakeFiles/rasterise.dir/rasterise_egl.cu.o
/home/zsf/anaconda3/envs/octopus/lib/python2.7/site-packages/tensorflow/include/absl/strings/string_view.h(495): warning: expression has no effect

/home/zsf/anaconda3/envs/octopus/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_launch_config.h(131): error: class "Eigen::GpuDevice" has no member "getNumCudaMultiProcessors"

/home/zsf/anaconda3/envs/octopus/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_launch_config.h(131): error: class "Eigen::GpuDevice" has no member "maxCudaThreadsPerMultiProcessor"

/home/zsf/anaconda3/envs/octopus/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_launch_config.h(130): error: no instance of overloaded function "std::min" matches the argument list
argument types are: (, const int)

/home/zsf/anaconda3/envs/octopus/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_launch_config.h(133): error: class "Eigen::GpuDevice" has no member "maxCudaThreadsPerBlock"

/home/zsf/anaconda3/envs/octopus/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_launch_config.h(133): error: no instance of overloaded function "std::min" matches the argument list
argument types are: (int, )

/home/zsf/anaconda3/envs/octopus/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_launch_config.h(136): error: class "Eigen::GpuDevice" has no member "getNumCudaMultiProcessors"

/home/zsf/anaconda3/envs/octopus/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_launch_config.h(135): error: no instance of overloaded function "std::min" matches the argument list
argument types are: (int, )

/home/zsf/anaconda3/envs/octopus/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_launch_config.h(216): error: class "Eigen::GpuDevice" has no member "getNumCudaMultiProcessors"

/home/zsf/anaconda3/envs/octopus/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_launch_config.h(216): error: class "Eigen::GpuDevice" has no member "maxCudaThreadsPerMultiProcessor"

/home/zsf/anaconda3/envs/octopus/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_launch_config.h(218): error: no instance of overloaded function "std::max" matches the argument list
argument types are: (, int)

/home/zsf/anaconda3/envs/octopus/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_launch_config.h(226): error: no instance of overloaded function "std::min" matches the argument list
argument types are: (, const int)

/home/zsf/anaconda3/envs/octopus/lib/python2.7/site-packages/tensorflow/include/tensorflow/core/util/cuda_launch_config.h(294): error: class "stream_executor::internal::StreamInterface" has no member "CudaStreamMemberHack"

12 errors detected in the compilation of "/tmp/tmpxft_000063c8_00000000-6_rasterise_egl.cpp1.ii".
CMakeFiles/rasterise.dir/build.make:86: recipe for target 'CMakeFiles/rasterise.dir/rasterise_egl.cu.o' failed
make[2]: *** [CMakeFiles/rasterise.dir/rasterise_egl.cu.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/rasterise.dir/all' failed
make[1]: *** [CMakeFiles/rasterise.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

How to solve these problems? Looking forward to your reply
*tf 1.14.0 *ubuntu16 *py2.7

@Void-Mohit
Copy link

Void-Mohit commented Jun 9, 2021

Try this version of TensorFlow it works for me.

pip install tensorflow==2.2.0rc1

pip install tensorflow-gpu==2.2.0rc1

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

2 participants