未验证 提交 4a143fe0 编写于 作者: L lishicheng1996 提交者: GitHub

fix a rocm cmakefile bug (#54952)

上级 07b83f2e
......@@ -79,7 +79,7 @@ if((WITH_GPU OR WITH_ROCM) AND (LINUX))
py_test_modules(
test_collective_alltoall_api MODULES test_collective_alltoall_api ENVS
"http_proxy=;https_proxy=;PYTHONPATH=..:${PADDLE_BINARY_DIR}/python")
if(${CUDA_ARCH_NAME} STREQUAL "Ampere")
if((NOT WITH_ROCM) AND ((${CUDA_ARCH_NAME}) STREQUAL "Ampere"))
set_tests_properties(test_collective_alltoall_api
PROPERTIES TIMEOUT "160" LABELS "RUN_TYPE=DIST")
else()
......@@ -135,7 +135,7 @@ if((WITH_GPU OR WITH_ROCM) AND (LINUX))
py_test_modules(
test_collective_broadcast_api MODULES test_collective_broadcast_api ENVS
"http_proxy=;https_proxy=;PYTHONPATH=..:${PADDLE_BINARY_DIR}/python")
if(${CUDA_ARCH_NAME} STREQUAL "Ampere")
if((NOT WITH_ROCM) AND ((${CUDA_ARCH_NAME}) STREQUAL "Ampere"))
set_tests_properties(test_collective_broadcast_api
PROPERTIES TIMEOUT "500" LABELS "RUN_TYPE=DIST")
else()
......@@ -238,7 +238,7 @@ if((WITH_GPU OR WITH_ROCM) AND (LINUX))
test_collective_reduce_scatter_api MODULES
test_collective_reduce_scatter_api ENVS
"http_proxy=;https_proxy=;PYTHONPATH=..:${PADDLE_BINARY_DIR}/python")
if(${CUDA_ARCH_NAME} STREQUAL "Ampere")
if((NOT WITH_ROCM) AND ((${CUDA_ARCH_NAME}) STREQUAL "Ampere"))
set_tests_properties(test_collective_reduce_scatter_api
PROPERTIES TIMEOUT "360" LABELS "RUN_TYPE=DIST")
else()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册