summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/hipsolver/0001-suite-sparse-include-path-6.1.1.patch
blob: 388e50d365a3b4f4e16dba7b126b673a22bf7b03 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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