File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed
Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,9 @@ endif()
146146 # message(STATUS "CUPLDP with Nvidia is only supported on Linux at the moment. Using CPU version.")
147147# endif()
148148
149+ option (PROTO_IPM "Build ProtoIPM" OFF )
150+ message (STATUS "Build ProtoIPM: ${PROTO_IPM} " )
151+
149152if (CUPDLP_GPU)
150153 if (WIN32 )
151154 set (BUILD_SHARED_LIBS ON )
@@ -176,6 +179,14 @@ endif()
176179# in comparison with the CPU
177180option (CUPDLP_FORCE_NATIVE "Build pdlp with native termination" OFF )
178181
182+ # ProtoIPM deps
183+ if (PROTO_IPM)
184+ # find_package(METIS REQUIRED)
185+ # find_package(GKlib REQUIRED)
186+ # does not work with outdated CMake
187+ include (FindProtoDeps)
188+ endif ()
189+
179190if (BUILD_CXX)
180191 # Default Build Type to be Release
181192 get_property (isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
Original file line number Diff line number Diff line change 1+
2+ # BLAS
3+ if (NOT APPLE )
4+ find_library (BLAS_LIB NAMES blas PATH /opt/intel/oneapi/mkl/latest/lib/)
5+ if (BLAS_LIB)
6+ message ("Found BLAS library at ${BLAS_LIB} " )
7+ else (BLAS_LIB)
8+ find_library (OPENBLAS_LIB NAMES openblas)
9+ if (NOT OPENBLAS_LIB)
10+ message (FATAL_ERROR "No BLAS library found" )
11+ endif (NOT OPENBLAS_LIB)
12+ message ("Found OpenBLAS library at ${OPENBLAS_LIB} " )
13+ endif (BLAS_LIB)
14+ endif (NOT APPLE )
15+
16+ # Metis
17+ find_path (METIS_PATH NAMES "metis.h" REQUIRED HINTS "${METIS_DIR} /include" )
18+ message ("Found Metis header at ${METIS_PATH} " )
19+
20+ find_library (METIS_LIB NAMES metis REQUIRED HINTS "${METIS_PATH} /../lib" )
21+ message ("Found Metis library at ${METIS_LIB} " )
22+
23+ # GKlib
24+ find_path (GKLIB_PATH NAMES "GKlib.h" REQUIRED HINTS "${GKLIB_DIR} /include" HINTS "${METIS_DIR} /include" )
25+ message ("Found GKlib header at ${GKLIB_PATH} " )
26+
27+ find_library (GKLIB_LIB NAMES GKlib REQUIRED HINTS "${GKLIB_PATH} /../lib" )
28+ message ("Found GKlib library at ${GKLIB_LIB} " )
You can’t perform that action at this time.
0 commit comments