Files
spack/var/spack/repos/builtin/packages/hipsolver/0001-suite-sparse-include-path-6.1.1.patch
Sreenivasa Murthy Kolam d6a182fb5d Bump-up the version for RoCm-6.1.1 release (#44178)
* initial commit for RoCm-6.1.1 release

* fix style issues

* update the version for rocmlir and rocm-cmake

* restrict the patch for 6.0.0 release

* fix build failure for hipsolver-6.1.1 release

* update the hipblaslt for rocm-6.1.1 release

* add the patch for hipsparselt for 6.1.1 rel
2024-05-30 08:57:43 -07:00

39 lines
1.3 KiB
Diff

From 4bea73ab74deb313030a1abb135fd668f7f5b96a Mon Sep 17 00:00:00 2001
From: sreenivasa murthy kolam <sreenivasamurthy.kolam@amd.com>
Date: Tue, 21 May 2024 06:52:30 +0000
Subject: [PATCH] add SUITE_SPARSE_PATH to the CMakeLists.txt
---
CMakeLists.txt | 1 +
library/src/CMakeLists.txt | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 52a059a..fddda0b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -88,6 +88,7 @@ include( ROCMPackageConfigHelpers )
include( ROCMInstallSymlinks )
include( ROCMClients )
include( ROCMHeaderWrapper )
+include_directories(${SUITE_SPARSE_PATH}/include)
set ( VERSION_STRING "2.1.1" )
rocm_setup_version( VERSION ${VERSION_STRING} )
diff --git a/library/src/CMakeLists.txt b/library/src/CMakeLists.txt
index ec708df..224e5a5 100644
--- a/library/src/CMakeLists.txt
+++ b/library/src/CMakeLists.txt
@@ -135,7 +135,7 @@ if( NOT USE_CUDA )
endif( )
endif( )
- target_link_libraries( hipsolver PRIVATE roc::rocsparse suitesparseconfig cholmod )
+ target_link_libraries( hipsolver PRIVATE roc::rocsparse ${SUITE_SPARSE_PATH}/lib64/libsuitesparseconfig.so ${SUITE_SPARSE_PATH}/lib64/libcholmod.so )
set_source_files_properties(${hipsolver_source}
PROPERTIES
COMPILE_DEFINITIONS HAVE_ROCSPARSE
--
2.39.3