提交 f6f31241 编写于 作者: Y Yi Wang

Move --expt-relaxed-constexpt as a NVCC flag

上级 6b515404
......@@ -60,7 +60,7 @@ else()
message(FATAL_ERROR "Paddle need cudnn to compile")
endif()
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} "-Xcompiler ${SIMD_FLAG}")
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} "-Xcompiler ${SIMD_FLAG}" "--expt-relaxed-constexpr")
# Include cuda and cudnn
include_directories(${CUDNN_INCLUDE_DIR})
......
......@@ -116,7 +116,6 @@ set(COMMON_FLAGS
-Wno-error=sign-compare
-Wno-error=unused-local-typedefs
-Wno-error=parentheses-equality # Warnings in pybind11
--expt-relaxed-constexpr # surppress warnings in Eigen
)
set(GPU_COMMON_FLAGS
......@@ -131,7 +130,6 @@ set(GPU_COMMON_FLAGS
-Wno-error=unused-local-typedefs
-Wno-error=unused-function # Warnings in Numpy Header.
-Wno-error=array-bounds # Warnings in Eigen::array
--expt-relaxed-constexpr # surppress warnings in Eigen
)
if (APPLE)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册