Browse Source

Support new build option LAPACK_STRLEN

tags/v0.3.28^2
Martin Kroeker GitHub 1 year ago
parent
commit
7e8118d94e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions
  1. +2
    -0
      CMakeLists.txt
  2. +4
    -0
      Makefile

+ 2
- 0
CMakeLists.txt View File

@@ -22,6 +22,8 @@ option(BUILD_WITHOUT_LAPACK "Do not build LAPACK and LAPACKE (Only BLAS or CBLAS

option(BUILD_LAPACK_DEPRECATED "When building LAPACK, include also some older, deprecated routines" ON)

set(LAPACK_STRLEN "" CACHE STRING "When building LAPACK, use this type (e.g. \"int\") for character lengths (defaults to size_t)")

option(BUILD_TESTING "Build LAPACK testsuite when building LAPACK" ON)

option(BUILD_BENCHMARKS "Build the collection of BLAS/LAPACK benchmarks" OFF)


+ 4
- 0
Makefile View File

@@ -45,6 +45,10 @@ else
LAPACK_NOOPT := $(filter-out -O0 -O1 -O2 -O3 -Ofast -O -Og -Os,$(LAPACK_FFLAGS))
endif

ifdef LAPACK_STRLEN
LAPACK_FFLAGS += -DLAPACK_STRLEN=$(LAPACK_STRLEN)
endif

SUBDIRS_ALL = $(SUBDIRS) test ctest utest exports benchmark ../laswp ../bench cpp_thread_test

.PHONY : all libs netlib $(RELA) test ctest shared install


Loading…
Cancel
Save