Skip to content

[HIP] Adds rocPRIM target #227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 1, 2025
Merged
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
18 changes: 18 additions & 0 deletions External/HIP/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,24 @@ macro(create_hip_tests)
add_custom_target(test-ginkgo COMMAND "ctest" "-R hip" WORKING_DIRECTORY "${BINARY_DIR}" DEPENDS build-ginkgo)
endif()

if (EXTERNAL_HIP_TESTS_ROCPRIM)
ExternalProject_Add(BuildRocPrim
GIT_REPOSITORY https://github.com/ROCm/rocPRIM.git
GIT_TAG ae4d27e # Staging for ROCm 6.4
CMAKE_ARGS -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
-DCMAKE_HIP_COMPILER=${CMAKE_CXX_COMPILER}
-DBUILD_TEST=ON
-DAMDGPU_TARGETS="${AMDGPU_ARCHS}"
-DCMAKE_BUILD_TYPE=Release
INSTALL_COMMAND ""
TEST_COMMAND ""
)

add_custom_target(build-rocprim DEPENDS BuildRocPrim)

endif()

add_custom_target(hip-tests-all DEPENDS hip-tests-simple
COMMENT "Build all HIP tests.")

Expand Down