You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
option(WITH_GPU "Compile PaddlePaddle with NVIDIA GPU"${CUDA_FOUND})
31
-
31
+
option(WITH_XPU "Compile PaddlePaddle with BAIDU KUNLUN"OFF)
32
+
if (WITH_GPU AND WITH_XPU)
33
+
message(FATAL_ERROR "Error when compile GPU and XPU at the same time")
34
+
endif()
32
35
# cmake 3.12, 3.13, 3.14 will append gcc link options to nvcc, and nvcc doesn't recognize them.
33
36
if(WITH_GPU AND (${CMAKE_VERSION}VERSION_GREATER_EQUAL 3.12) AND (${CMAKE_VERSION}VERSION_LESS 3.15))
34
37
message(FATAL_ERROR "cmake ${CMAKE_VERSION} is not supported when WITH_GPU=ON because of bug https://cmake.org/pipermail/cmake/2018-September/068195.html. "
0 commit comments