Skip to content

Commit

Permalink
SWDEV-253319 : Changing amdgpu-target to cuda-gpu-arch (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
nunnikri authored Sep 24, 2020
1 parent e1ac257 commit 0728d21
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ foreach(benchmark_src ${rocRAND_BENCHMARK_SRCS})
hip::device
)
foreach(amdgpu_target ${AMDGPU_TARGETS})
target_link_libraries(${benchmark_name} --amdgpu-target=${amdgpu_target})
target_link_libraries(${benchmark_name} --cuda-gpu-arch=${amdgpu_target})
endforeach()
endif()
set_target_properties(${benchmark_name}
Expand Down
4 changes: 2 additions & 2 deletions library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ set_target_properties(rocrand
# Set AMD targets
if(HIP_COMPILER STREQUAL "hcc" OR HIP_COMPILER STREQUAL "clang")
foreach(amdgpu_target ${AMDGPU_TARGETS})
target_link_libraries(rocrand PRIVATE --amdgpu-target=${amdgpu_target})
target_link_libraries(rocrand PRIVATE --cuda-gpu-arch=${amdgpu_target})
endforeach()
endif()

Expand Down Expand Up @@ -185,7 +185,7 @@ else()
target_link_libraries(hiprand PRIVATE rocrand hip::device)
endif()
foreach(amdgpu_target ${AMDGPU_TARGETS})
target_link_libraries(hiprand PRIVATE --amdgpu-target=${amdgpu_target})
target_link_libraries(hiprand PRIVATE --cuda-gpu-arch=${amdgpu_target})
endforeach()
endif()

Expand Down
4 changes: 2 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ foreach(test_src ${rocRAND_TEST_SRCS})
target_link_libraries(${test_name} hip::device )
endif()
foreach(amdgpu_target ${AMDGPU_TARGETS})
target_link_libraries(${test_name} --amdgpu-target=${amdgpu_target})
target_link_libraries(${test_name} --cuda-gpu-arch=${amdgpu_target})
endforeach()
endif()
set_target_properties(
Expand Down Expand Up @@ -111,7 +111,7 @@ foreach(test_src ${hipRAND_TEST_SRCS})
)
target_link_libraries(${test_name} hip::device )
foreach(amdgpu_target ${AMDGPU_TARGETS})
target_link_libraries(${test_name} --amdgpu-target=${amdgpu_target})
target_link_libraries(${test_name} --cuda-gpu-arch=${amdgpu_target})
endforeach()
endif()
set_target_properties(${test_name}
Expand Down
4 changes: 2 additions & 2 deletions test/linkage/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function(add_rocrand_link_test TEST_SOURCES)
if(HIP_COMPILER STREQUAL "hcc" OR HIP_COMPILER STREQUAL "clang")
target_link_libraries(${TEST_TARGET} hip::device)
foreach(amdgpu_target ${AMDGPU_TARGETS})
target_link_libraries(${TEST_TARGET} --amdgpu-target=${amdgpu_target})
target_link_libraries(${TEST_TARGET} --cuda-gpu-arch=${amdgpu_target})
endforeach()
endif()
set_target_properties(
Expand Down Expand Up @@ -94,7 +94,7 @@ function(add_hiprand_link_test TEST_SOURCES)
)
target_link_libraries(${TEST_TARGET} hip::device)
foreach(amdgpu_target ${AMDGPU_TARGETS})
target_link_libraries(${TEST_TARGET} --amdgpu-target=${amdgpu_target})
target_link_libraries(${TEST_TARGET} --cuda-gpu-arch=${amdgpu_target})
endforeach()
endif()
set_target_properties(${TEST_TARGET}
Expand Down

0 comments on commit 0728d21

Please sign in to comment.