Skip to content

Commit 1fab9f7

Browse files
authored
gpu-system.sh: Don't have duplicated architectures in version string (alisw#5980)
1 parent fab86f2 commit 1fab9f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gpu-system.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ prefer_system_check: |
8080
if(OPENCL_ENABLED)
8181
set(OPENCL_ENABLED 1)
8282
endif()
83+
list(REMOVE_DUPLICATES CMAKE_CUDA_ARCHITECTURES)
84+
list(REMOVE_DUPLICATES CMAKE_HIP_ARCHITECTURES)
8385
file(CONFIGURE
8486
OUTPUT "env.sh"
8587
CONTENT "

0 commit comments

Comments
 (0)