@@ -33,6 +33,7 @@ option(WITH_TENSORRT "Compile PaddlePaddle with NVIDIA TensorRT" OFF)
3333option (WITH_XPU "Compile PaddlePaddle with BAIDU KUNLUN XPU" OFF )
3434option (WITH_WIN_DUMP_DBG "Compile with windows core dump debug mode" OFF )
3535option (WITH_ASCEND "Compile PaddlePaddle with ASCEND" OFF )
36+ option (WITH_ROCM "Compile PaddlePaddle with ROCM platform" OFF )
3637# NOTE(zhiqiu): WITH_ASCEND_CL can be compile on x86_64, so we can set WITH_ASCEND=OFF and WITH_ASCEND_CL=ON
3738# to develop some acl related functionality on x86
3839option (WITH_ASCEND_CL "Compile PaddlePaddle with ASCEND CL" ${WITH_ASCEND} )
@@ -43,6 +44,9 @@ endif()
4344if (WITH_GPU AND WITH_ASCEND)
4445 message (FATAL_ERROR "Error when compile GPU and ASCEND at the same time" )
4546endif ()
47+ if (WITH_GPU AND WITH_ROCM)
48+ message (FATAL_ERROR "Error when compile CUDA and ROCM at the same time" )
49+ endif ()
4650
4751if (WITH_GPU AND NOT APPLE )
4852 enable_language (CUDA)
@@ -168,8 +172,6 @@ option(WITH_DISTRIBUTE "Compile with distributed support" OFF)
168172option (WITH_BRPC_RDMA "Use brpc rdma as the rpc protocal" OFF )
169173option (ON_INFER "Turn on inference optimization and inference-lib generation" OFF )
170174################################ Internal Configurations #######################################
171- option (WITH_ROCM "Compile PaddlePaddle with ROCM platform" OFF )
172- option (WITH_RCCL "Compile PaddlePaddle with RCCL support" OFF )
173175option (WITH_NV_JETSON "Compile PaddlePaddle with NV JETSON" OFF )
174176option (WITH_PROFILER "Compile PaddlePaddle with GPU profiler and gperftools" OFF )
175177option (WITH_COVERAGE "Compile PaddlePaddle with code coverage" OFF )
@@ -182,12 +184,14 @@ option(WITH_XBYAK "Compile with xbyak support" ON)
182184option (WITH_CONTRIB "Compile the third-party contributation" OFF )
183185option (WITH_GRPC "Use grpc as the default rpc framework" ${WITH_DISTRIBUTE} )
184186option (WITH_PSCORE "Compile with parameter server support" ${WITH_DISTRIBUTE} )
187+ option (WITH_HETERPS "Compile with heterps" OFF })
185188option (WITH_INFERENCE_API_TEST "Test fluid inference C++ high-level api interface" OFF )
186189option (PY_VERSION "Compile PaddlePaddle with python3 support" ${PY_VERSION} )
187190option (WITH_DGC "Use DGC(Deep Gradient Compression) or not" ${WITH_DISTRIBUTE} )
188191option (SANITIZER_TYPE "Choose the type of sanitizer, options are: Address, Leak, Memory, Thread, Undefined" OFF )
189192option (WITH_LITE "Compile Paddle Fluid with Lite Engine" OFF )
190193option (WITH_NCCL "Compile PaddlePaddle with NCCL support" ON )
194+ option (WITH_RCCL "Compile PaddlePaddle with RCCL support" ON )
191195option (WITH_XPU_BKCL "Compile PaddlePaddle with BAIDU KUNLUN XPU BKCL" OFF )
192196option (WITH_CRYPTO "Compile PaddlePaddle with crypto support" ON )
193197option (WITH_ARM "Compile PaddlePaddle with arm support" OFF )
@@ -305,9 +309,9 @@ endif(WITH_ROCM)
305309
306310if (NOT WITH_ROCM AND WITH_RCCL)
307311 MESSAGE (WARNING
308- "Disable RCCL when compiling without GPU . Force WITH_RCCL=OFF." )
309- set (WITH_NCCL OFF CACHE STRING
310- "Disable RCCL when compiling without GPU " FORCE)
312+ "Disable RCCL when compiling without ROCM . Force WITH_RCCL=OFF." )
313+ set (WITH_RCCL OFF CACHE STRING
314+ "Disable RCCL when compiling without ROCM " FORCE)
311315endif ()
312316
313317if (WITH_RCCL)
0 commit comments