Skip to content

Commit

Permalink
Add USE_LAPACK as CMake option (default: ON)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmusolino committed Oct 31, 2023
1 parent f5f054b commit 618a1fa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,14 @@ message(STATUS "Printing is NOT ${NO_PRINTING}")
option(NO_READ_WRITE "Disables all read/write functionality" OFF)
message(STATUS "Read/write functionality is NOT ${NO_READ_WRITE}")

option(USE_LAPACK "Whether to use BLAS/LAPACK" ON)
message(STATUS "BLAS/LAPACK usage is ${USE_LAPACK}")

# Enable OpenMP support
option(USE_OPENMP "Compile with OpenMP support" OFF)
message(STATUS "OpenMP parallelization is ${USE_OPENMP}")

set(COMPILER_OPTS "-DUSE_LAPACK -DCTRLC")
set(COMPILER_OPTS "-DCTRLC")

# Primitive types
if(SFLOAT)
Expand All @@ -150,6 +153,10 @@ if(NO_READ_WRITE)
set(COMPILER_OPTS "-DNO_READ_WRITE=1 ${COMPILER_OPTS}")
endif()

if (USE_LAPACK)
set(COMPILER_OPTS "-DUSE_LAPACK ${COMPILER_OPTS}")
endif()

if(USE_OPENMP)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fopenmp")
endif()
Expand Down

0 comments on commit 618a1fa

Please sign in to comment.