Strip lapacke.h to only the declarations used by Eigen

libeigen/eigen!2322

Closes #2851
This commit is contained in:
Pavel Guzenfeld
2026-03-28 03:16:46 +00:00
committed by Rasmus Munk Larsen
parent cf508c096b
commit 90ca5bfd9a
5 changed files with 30 additions and 9890 deletions

View File

@@ -185,6 +185,8 @@ using std::ptrdiff_t;
#ifdef EIGEN_USE_LAPACKE #ifdef EIGEN_USE_LAPACKE
#ifdef EIGEN_USE_MKL #ifdef EIGEN_USE_MKL
#include "mkl_lapacke.h" #include "mkl_lapacke.h"
#elif defined(EIGEN_LAPACKE_SYSTEM)
#include <lapacke.h>
#else #else
#include "src/misc/lapacke.h" #include "src/misc/lapacke.h"
#endif #endif

View File

@@ -49,6 +49,8 @@
#ifdef EIGEN_USE_LAPACKE #ifdef EIGEN_USE_LAPACKE
#ifdef EIGEN_USE_MKL #ifdef EIGEN_USE_MKL
#include "mkl_lapacke.h" #include "mkl_lapacke.h"
#elif defined(EIGEN_LAPACKE_SYSTEM)
#include <lapacke.h>
#else #else
#include "src/misc/lapacke.h" #include "src/misc/lapacke.h"
#endif #endif

View File

@@ -40,6 +40,8 @@
#ifdef EIGEN_USE_LAPACKE #ifdef EIGEN_USE_LAPACKE
#ifdef EIGEN_USE_MKL #ifdef EIGEN_USE_MKL
#include "mkl_lapacke.h" #include "mkl_lapacke.h"
#elif defined(EIGEN_LAPACKE_SYSTEM)
#include <lapacke.h>
#else #else
#include "src/misc/lapacke.h" #include "src/misc/lapacke.h"
#endif #endif

File diff suppressed because it is too large Load Diff

View File

@@ -24,7 +24,7 @@ fi
# External-dependency modules that require third-party headers we don't have, # External-dependency modules that require third-party headers we don't have,
# and utility-only directories with no standalone module header. # and utility-only directories with no standalone module header.
SKIP_MODULES="AccelerateSupport|CholmodSupport|KLUSupport|MetisSupport|PaStiXSupport|PardisoSupport|SPQRSupport|SuperLUSupport|UmfPackSupport|TensorUtil" SKIP_MODULES="AccelerateSupport|CholmodSupport|KLUSupport|MetisSupport|PaStiXSupport|PardisoSupport|SPQRSupport|SuperLUSupport|UmfPackSupport|TensorUtil|misc"
# Get changed files (Added, Modified, Renamed). # Get changed files (Added, Modified, Renamed).
CHANGED_FILES=$(git diff --name-only --diff-filter=AMR "${BASE_SHA}" HEAD) CHANGED_FILES=$(git diff --name-only --diff-filter=AMR "${BASE_SHA}" HEAD)