Replace MKL with OpenBLAS

- TwoPunctures.C: <mkl_cblas.h> → <cblas.h>
- gaussj.C: <mkl_lapacke.h> → <lapacke.h>
- makefile.inc: use -lopenblaso, remove MKLROOT dependency
- makefile: remove -I${MKLROOT}/include from all flag variables
- Add OpenMPI include path to filein (needed since g++ is used for .C
  compilation, not the mpicxx wrapper)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-04-28 22:33:43 +08:00
parent 9687d9a3dd
commit 516cdea502
4 changed files with 9 additions and 9 deletions

View File

@@ -1,8 +1,8 @@
## GCC version with OpenMPI and oneMKL
filein = -I/usr/include/ -I${MKLROOT}/include
## GCC version with OpenMPI and OpenBLAS
filein = -I/usr/include/ -I/usr/mpi/gcc/openmpi-4.1.9a1/include
## Using MKL with gfortran interface (-lmkl_gf_lp64 instead of -lmkl_intel_lp64)
LDLIBS = -L${MKLROOT}/lib -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lgfortran -lpthread -lm -ldl -lgomp
## OpenBLAS (OpenMP variant) + gfortran runtime
LDLIBS = -lopenblaso -lgfortran -lpthread -lm -ldl -lgomp
## Memory allocator switch
## 0 (default) : use system default allocator (ptmalloc)