From bb8641191b8bc43e056b4e17cf5758dedf3a1025 Mon Sep 17 00:00:00 2001 From: RuibinCheung Date: Mon, 19 Jan 2026 05:39:07 +0000 Subject: [PATCH 1/2] fix: make install error on ROCm --- src/stdgpu/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/stdgpu/CMakeLists.txt b/src/stdgpu/CMakeLists.txt index fc3a95aaa..e6f095305 100644 --- a/src/stdgpu/CMakeLists.txt +++ b/src/stdgpu/CMakeLists.txt @@ -185,6 +185,8 @@ install(FILES "${stdgpu_SOURCE_DIR}/cmake/Findthrust.cmake" DESTINATION "${STDGPU_CMAKE_INSTALL_DIR}" COMPONENT stdgpu) -install(FILES "${stdgpu_SOURCE_DIR}/cmake/${STDGPU_BACKEND_DIRECTORY}/determine_thrust_paths.cmake" - DESTINATION "${STDGPU_CMAKE_INSTALL_DIR}/${STDGPU_BACKEND_DIRECTORY}" - COMPONENT stdgpu) +if(STDGPU_BACKEND STREQUAL STDGPU_BACKEND_CUDA) + install(FILES "${stdgpu_SOURCE_DIR}/cmake/${STDGPU_BACKEND_DIRECTORY}/determine_thrust_paths.cmake" + DESTINATION "${STDGPU_CMAKE_INSTALL_DIR}/${STDGPU_BACKEND_DIRECTORY}" + COMPONENT stdgpu) +endif() \ No newline at end of file From d943f94033f7c596ec64c100968727a964e941a0 Mon Sep 17 00:00:00 2001 From: RuibinCheung Date: Tue, 20 Jan 2026 05:43:22 +0000 Subject: [PATCH 2/2] resolved reviewer issues --- src/stdgpu/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stdgpu/CMakeLists.txt b/src/stdgpu/CMakeLists.txt index e6f095305..2a71d2da7 100644 --- a/src/stdgpu/CMakeLists.txt +++ b/src/stdgpu/CMakeLists.txt @@ -185,8 +185,8 @@ install(FILES "${stdgpu_SOURCE_DIR}/cmake/Findthrust.cmake" DESTINATION "${STDGPU_CMAKE_INSTALL_DIR}" COMPONENT stdgpu) -if(STDGPU_BACKEND STREQUAL STDGPU_BACKEND_CUDA) +if(NOT STDGPU_BACKEND STREQUAL STDGPU_BACKEND_HIP) install(FILES "${stdgpu_SOURCE_DIR}/cmake/${STDGPU_BACKEND_DIRECTORY}/determine_thrust_paths.cmake" DESTINATION "${STDGPU_CMAKE_INSTALL_DIR}/${STDGPU_BACKEND_DIRECTORY}" COMPONENT stdgpu) -endif() \ No newline at end of file +endif()