未验证 提交 d9c3abe6 编写于 作者: Y Yuanle Liu 提交者: GitHub

remove need cpp14 support (#52867)

上级 ef734e84
...@@ -83,7 +83,7 @@ else() ...@@ -83,7 +83,7 @@ else()
if(WITH_MKL) if(WITH_MKL)
set(FLAG_OPENMP "-fopenmp") set(FLAG_OPENMP "-fopenmp")
endif() endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 ${FLAG_OPENMP}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 ${FLAG_OPENMP}")
endif() endif()
if(WITH_GPU) if(WITH_GPU)
......
...@@ -105,16 +105,16 @@ struct PADDLE_ALIGN(sizeof(T) * 2) complex { ...@@ -105,16 +105,16 @@ struct PADDLE_ALIGN(sizeof(T) * 2) complex {
template <typename T1 = T> template <typename T1 = T>
HOSTDEVICE explicit complex( HOSTDEVICE explicit complex(
const std::enable_if_t<std::is_same<T1, float>::value, complex<double>>& const typename std::enable_if<std::is_same<T1, float>::value,
val) { complex<double>>::type& val) {
real = val.real; real = val.real;
imag = val.imag; imag = val.imag;
} }
template <typename T1 = T> template <typename T1 = T>
HOSTDEVICE explicit complex( HOSTDEVICE explicit complex(
const std::enable_if_t<std::is_same<T1, double>::value, complex<float>>& const typename std::enable_if<std::is_same<T1, double>::value,
val) { complex<float>>::type& val) {
real = val.real; real = val.real;
imag = val.imag; imag = val.imag;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册