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
10 changes: 10 additions & 0 deletions Libraries/hipSPARSELt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ include(CTest)
file(RELATIVE_PATH folder_bin ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/${folder_bin})

# see https://github.com/ROCm/rocm-libraries/blob/40bbc75960836d1b9e0573606df9dd79800e412a/projects/hipsparselt/cmake/hipsparselt_supported_architectures.cmake#L10-L21
set(HIPSPARSELT_SUPPORTED_ARCH gfx942 gfx950)

foreach(ARCH ${CMAKE_HIP_ARCHITECTURES})
if(NOT ARCH IN_LIST HIPSPARSELT_SUPPORTED_ARCH)
message(STATUS "hipSPARSELt does not support architecture: ${ARCH}, not building hipSPARSELt examples")
return()
endif()
endforeach()

if(CMAKE_SYSTEM_NAME MATCHES "Windows")
set(ROCM_ROOT
"$ENV{HIP_PATH}"
Expand Down
9 changes: 9 additions & 0 deletions Libraries/hipSPARSELt/spmm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ select_gpu_language()
enable_language(${ROCM_EXAMPLES_GPU_LANGUAGE})
select_hip_platform()

# see https://github.com/ROCm/rocm-libraries/blob/40bbc75960836d1b9e0573606df9dd79800e412a/projects/hipsparselt/cmake/hipsparselt_supported_architectures.cmake#L10-L21
set(HIPSPARSELT_SUPPORTED_ARCH gfx942 gfx950)

foreach(ARCH ${CMAKE_HIP_ARCHITECTURES})
if(NOT ARCH IN_LIST HIPSPARSELT_SUPPORTED_ARCH)
message(FATAL_ERROR "hipSPARSELt does not support architecture: ${ARCH}, not building hipSPARSELt examples")
endif()
endforeach()

if(CMAKE_SYSTEM_NAME MATCHES "Windows")
set(ROCM_ROOT
"$ENV{HIP_PATH}"
Expand Down
9 changes: 9 additions & 0 deletions Libraries/hipSPARSELt/spmm_advanced/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ select_gpu_language()
enable_language(${ROCM_EXAMPLES_GPU_LANGUAGE})
select_hip_platform()

# see https://github.com/ROCm/rocm-libraries/blob/40bbc75960836d1b9e0573606df9dd79800e412a/projects/hipsparselt/cmake/hipsparselt_supported_architectures.cmake#L10-L21
set(HIPSPARSELT_SUPPORTED_ARCH gfx942 gfx950)

foreach(ARCH ${CMAKE_HIP_ARCHITECTURES})
if(NOT ARCH IN_LIST HIPSPARSELT_SUPPORTED_ARCH)
message(FATAL_ERROR "hipSPARSELt does not support architecture: ${ARCH}, not building hipSPARSELt examples")
endif()
endforeach()

if(CMAKE_SYSTEM_NAME MATCHES "Windows")
set(ROCM_ROOT
"$ENV{HIP_PATH}"
Expand Down