Skip to content

Commit

Permalink
add CHIP_BUILD_HIPSOLVER option
Browse files Browse the repository at this point in the history
  • Loading branch information
pvelesko committed Oct 9, 2024
1 parent 887cfbf commit 12b397a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ option(CHIP_FAST_MATH "Use native_ OpenCL functions which are fast but their pre
option(CHIP_USE_INTEL_USM "When enabled, cl_intel_unified_shared_memory extension, when available, will be used for HIP allocations in the OpenCL backend" ON)
option(CHIP_BUILD_HIPBLAS "When enabled, hipBLAS will be built and installed along chipStar" OFF)
option(CHIP_BUILD_HIPFFT "When enabled, hipFFT will be built and installed along chipStar" OFF)
option(CHIP_BUILD_HIPSOLVER "When enabled, hipSOLVER will be built and installed along chipStar" OFF)
option(CATCH2_DISCOVER_TESTS_COMPILE_TIME "Discover the tests at compile time" ON)
option(CHIP_SKIP_TESTS_WITH_DOUBLES "Skip tests where kernels use doubles." OFF)

Expand Down Expand Up @@ -799,7 +800,7 @@ install(EXPORT CHIPTargets
# enable the build_tests target
SET(HIP_PATH ${CMAKE_BINARY_DIR}) # pick up build sources, not install sources

if (CHIP_BUILD_HIPBLAS OR CHIP_BUILD_HIPFFT)
if (CHIP_BUILD_HIPBLAS OR CHIP_BUILD_HIPFFT OR CHIP_BUILD_HIPSOLVER)
add_subdirectory(H4I-MKLShim)
add_dependencies(MKLShim CHIP)
endif()
Expand All @@ -816,6 +817,11 @@ if (CHIP_BUILD_HIPFFT)
add_dependencies(hipfft CHIP MKLShim)
endif()

if (CHIP_BUILD_HIPSOLVER)
add_subdirectory(H4I-HipSOLVER)
add_dependencies(hipsolver CHIP MKLShim)
endif()

set(SAVED_WARN_DEPRECATED ${CMAKE_WARN_DEPRECATED})
set(CMAKE_WARN_DEPRECATED OFF)
if(CHIP_BUILD_TESTS)
Expand Down

0 comments on commit 12b397a

Please sign in to comment.