|
1 |
| -Subject: [PATCH] Remove search of BLAS in SuiteSparse_config |
2 |
| ---- |
3 | 1 | Index: SuiteSparse_config/CMakeLists.txt
|
4 | 2 | IDEA additional info:
|
5 | 3 | Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
6 | 4 | <+>UTF-8
|
7 | 5 | ===================================================================
|
8 | 6 | diff --git a/SuiteSparse_config/CMakeLists.txt b/SuiteSparse_config/CMakeLists.txt
|
9 |
| ---- a/SuiteSparse_config/CMakeLists.txt (revision d9d7d244adc12d0a9bbe6795db6be844912e26a0) |
10 |
| -+++ b/SuiteSparse_config/CMakeLists.txt (date 1744114075501) |
11 |
| -@@ -127,7 +127,7 @@ |
| 7 | +--- a/SuiteSparse_config/CMakeLists.txt (revision 31572b33461e17eb3836c8cda9b1e5920ab1dfa0) |
| 8 | ++++ b/SuiteSparse_config/CMakeLists.txt (date 1744182969364) |
| 9 | +@@ -127,7 +127,19 @@ |
12 | 10 | # find the BLAS
|
13 | 11 | #-------------------------------------------------------------------------------
|
14 |
| - |
| 12 | + |
15 | 13 | -include ( SuiteSparseBLAS )
|
16 |
| -+#include ( SuiteSparseBLAS ) |
17 |
| - |
| 14 | ++option ( SUITESPARSE_REQUIRE_BLAS "Must not be set to OFF if any SuiteSparse project requires BLAS functions" ON ) |
| 15 | ++ |
| 16 | ++if ( SUITESPARSE_REQUIRE_BLAS ) |
| 17 | ++ include ( SuiteSparseBLAS ) |
| 18 | ++else ( ) |
| 19 | ++ # It doesn't actually matter which Fortran integer size is selected here. |
| 20 | ++ # But we might as well respect any user flags. |
| 21 | ++ if ( SUITESPARSE_USE_64BIT_BLAS ) |
| 22 | ++ include ( SuiteSparseBLAS64 ) |
| 23 | ++ else ( ) |
| 24 | ++ include ( SuiteSparseBLAS32 ) |
| 25 | ++ endif ( ) |
| 26 | ++endif ( ) |
| 27 | + |
18 | 28 | #-------------------------------------------------------------------------------
|
19 | 29 | # configure files
|
20 |
| -Index: SuiteSparse_config/SuiteSparse_config.c |
| 30 | +Index: CMakeLists.txt |
21 | 31 | IDEA additional info:
|
22 | 32 | Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
23 | 33 | <+>UTF-8
|
24 | 34 | ===================================================================
|
25 |
| -diff --git a/SuiteSparse_config/SuiteSparse_config.c b/SuiteSparse_config/SuiteSparse_config.c |
26 |
| ---- a/SuiteSparse_config/SuiteSparse_config.c (revision d9d7d244adc12d0a9bbe6795db6be844912e26a0) |
27 |
| -+++ b/SuiteSparse_config/SuiteSparse_config.c (date 1744114226929) |
28 |
| -@@ -745,37 +745,7 @@ |
29 |
| - |
30 |
| - const char *SuiteSparse_BLAS_library ( void ) |
31 |
| - { |
32 |
| -- #if defined ( BLAS_Intel10_64ilp ) |
33 |
| -- return ("Intel MKL 64ilp BLAS (64-bit integers)") ; |
34 |
| -- #elif defined ( BLAS_Intel10_64lp ) |
35 |
| -- return ("Intel MKL 64lp BLAS (32-bit integers)") ; |
36 |
| -- #elif defined ( BLAS_Apple ) |
37 |
| -- return ("Apple Accelerate Framework BLAS (32-bit integers)") ; |
38 |
| -- #elif defined ( BLAS_Arm_ilp64_mp ) |
39 |
| -- return ("ARM MP BLAS (64-bit integers)") ; |
40 |
| -- #elif defined ( BLAS_Arm_mp ) |
41 |
| -- return ("ARM MP BLAS (32-bit integers)") ; |
42 |
| -- #elif defined ( BLAS_IBMESSL_SMP ) |
43 |
| -- return ((sizeof (SUITESPARSE_BLAS_INT) == 8) ? |
44 |
| -- "IBMESSL_SMP BLAS (64-bit integers)" : |
45 |
| -- "IBMESSL_SMP BLAS (32-bit integers)") ; |
46 |
| -- #elif defined ( BLAS_OpenBLAS ) |
47 |
| -- return ((sizeof (SUITESPARSE_BLAS_INT) == 8) ? |
48 |
| -- "OpenBLAS (64-bit integers)" : |
49 |
| -- "OpenBLAS (32-bit integers)") ; |
50 |
| -- #elif defined ( BLAS_FLAME ) |
51 |
| -- return ((sizeof (SUITESPARSE_BLAS_INT) == 8) ? |
52 |
| -- "FLAME (64-bit integers)" : |
53 |
| -- "FLAME (32-bit integers)") ; |
54 |
| -- #elif defined ( BLAS_Generic ) |
55 |
| -- return ((sizeof (SUITESPARSE_BLAS_INT) == 8) ? |
56 |
| -- "Reference BLAS (64-bit integers)" : |
57 |
| -- "Reference BLAS (32-bit integers)") ; |
58 |
| -- #else |
59 |
| -- return ((sizeof (SUITESPARSE_BLAS_INT) == 8) ? |
60 |
| -- "Other BLAS (64-bit integers)" : |
61 |
| -- "Other BLAS (32-bit integers)") ; |
62 |
| -- #endif |
63 |
| -+ return ("Not applicable") ; |
64 |
| - } |
65 |
| - |
66 |
| - //------------------------------------------------------------------------------ |
67 |
| -@@ -784,6 +754,6 @@ |
68 |
| - |
69 |
| - size_t SuiteSparse_BLAS_integer_size ( void ) |
70 |
| - { |
71 |
| -- return (sizeof (SUITESPARSE_BLAS_INT)) ; |
72 |
| -+ return (sizeof (int64_t)) ; |
73 |
| - } |
74 |
| - |
| 35 | +diff --git a/CMakeLists.txt b/CMakeLists.txt |
| 36 | +--- a/CMakeLists.txt (revision 31572b33461e17eb3836c8cda9b1e5920ab1dfa0) |
| 37 | ++++ b/CMakeLists.txt (date 1744182926833) |
| 38 | +@@ -64,6 +64,7 @@ |
| 39 | + |
| 40 | + # CHOLMOD options affecting dependencies |
| 41 | + option ( CHOLMOD_CAMD "ON (default): use CAMD/CCOLAMD. OFF: do not use CAMD/CCOLAMD" ON ) |
| 42 | ++option ( CHOLMOD_SUPERNODAL "ON (default): use Supernodal Module. OFF: do not use Supernodal Module" ON ) |
| 43 | + |
| 44 | + # KLU options affecting dependencies |
| 45 | + option ( KLU_USE_CHOLMOD "ON (default): use CHOLMOD in KLU. OFF: do not use CHOLMOD in KLU" ON ) |
| 46 | +@@ -266,6 +267,19 @@ |
| 47 | + endif ( ) |
| 48 | + |
| 49 | + |
| 50 | ++# BLAS is only required for some sub-projects |
| 51 | ++option ( SUITESPARSE_REQUIRE_BLAS "Must not be set to OFF if any SuiteSparse project requires BLAS functions" ON ) |
| 52 | ++ |
| 53 | ++if ( ("cholmod" IN_LIST SUITESPARSE_ENABLE_PROJECTS AND CHOLMOD_SUPERNODAL) |
| 54 | ++ OR "paru" IN_LIST SUITESPARSE_ENABLE_PROJECTS |
| 55 | ++ OR "spqr" IN_LIST SUITESPARSE_ENABLE_PROJECTS |
| 56 | ++ OR "umfpack" IN_LIST SUITESPARSE_ENABLE_PROJECTS ) |
| 57 | ++ if ( NOT SUITESPARSE_REQUIRE_BLAS ) |
| 58 | ++ message ( FATAL_ERROR "SUITESPARSE_REQUIRE_BLAS must not be set to OFF when building CHOLMOD with SUPERNODAL, ParU, SPQR, or UMFPACK." ) |
| 59 | ++ endif ( ) |
| 60 | ++ |
| 61 | ++endif ( ) |
| 62 | ++ |
| 63 | + #------------------------------------------------------------------------------- |
| 64 | + # include selected projects |
| 65 | + #------------------------------------------------------------------------------- |
0 commit comments