Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion paddle/phi/kernels/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ if(((WITH_GPU) AND (CUDA_VERSION VERSION_LESS 12.0))
"fusion/gpu/fused_weighted_swiglu_act_quant_kernel.cu")
endif()

if(((WITH_GPU) AND (CUDA_VERSION VERSION_LESS 12.0))
if(((WITH_GPU) AND (CUDA_VERSION VERSION_LESS 11.8))
OR APPLE
OR WITH_ROCM)
list(REMOVE_ITEM kernel_cu "legacy/gpu/layer_norm_cuda_kernel.cu")
Expand Down
10 changes: 9 additions & 1 deletion test/legacy_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -571,9 +571,17 @@ if(NOT WITH_GPU
OR APPLE
OR WITH_ROCM
OR (${CUDA_ARCH_NAME} STREQUAL "Volta") # Affects the accuracy of op tests
OR ((WITH_GPU) AND (CUDA_VERSION VERSION_LESS 12.0))
OR ((WITH_GPU) AND (CUDA_VERSION VERSION_LESS 11.8))
)# Restrict the use of older versions of CUB
list(REMOVE_ITEM TEST_OPS test_incubate_fused_rmsnorm_ext)
endif()

if(NOT WITH_GPU
OR APPLE
OR WITH_ROCM
OR (${CUDA_ARCH_NAME} STREQUAL "Volta") # Affects the accuracy of op tests
OR ((WITH_GPU) AND (CUDA_VERSION VERSION_LESS 12.0))
)# Restrict the use of older versions of CUB
list(REMOVE_ITEM TEST_OPS test_incubate_fast_ln)
endif()

Expand Down
Loading