Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

nvcc fatal: unknown option '-expt-relaxed-constexpr'?

Open liqiangniu opened this issue 8 years ago • 2 comments

CUDA IS 7.0 gcc is 4.8

liqiangniu avatar Jan 05 '18 08:01 liqiangniu

To compile paddle from source, you can refer to http://www.paddlepaddle.org/docs/develop/documentation/en/getstarted/build_and_install/build_from_source_en.html.

If you do not want to use docker, you can git clone the sources and compile as follows:

cd Paddle
mkdir build
cd build

cmake .. -DWITH_GPU=true -DWITH_AVX=true -DWITH_MKLDNN=true -DWITH_MKLML=true -DWITH_DSO=true -DWITH_TESTING=true -DWITH_SWIG_PY=true  -DCUDNN_ROOT=/someplace/cudnn_v5/cuda -DCMAKE_INSTALL_PREFIX=/someplace

make

make install

will-am avatar Jan 05 '18 12:01 will-am

The expt-relaxed-constexpr is used to suppress Eigen warnings. It is used here : https://github.com/PaddlePaddle/Paddle/blob/develop/cmake/cuda.cmake#L175 . It works on the environment of CentOS 6.3, CUDA 7.0 and GCC 4.8.3. What's your system?

qingqing01 avatar Jan 05 '18 13:01 qingqing01