Skip to content

Commit

Permalink
BLD: Add openblas extension build targets
Browse files Browse the repository at this point in the history
  • Loading branch information
elcorto committed Aug 28, 2023
1 parent c2c4c58 commit 0c6fc59
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/_ext_src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,20 @@ gfortran-omp: F2PY_OMP_F90_FLAGS=-lgomp
gfortran-mkl: LAPACK=-L$(MKL_LIB) -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lmkl_def
ifort-mkl: LAPACK=-L$(MKL_LIB) -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lmkl_def

# We assume that the path to libopenblas.so is in e.g. LD_LIBRARY_PATH
gfortran-openblas: LAPACK=-lopenblas
# untested
ifort-openblas: LAPACK=-lopenblas

# user targets (e.g. make gfortran)
gfortran: libs
ifort: libs
gfortran-omp: gfortran
ifort-omp: ifort
gfortran-mkl: gfortran
ifort-mkl: ifort
gfortran-openblas: gfortran
ifort-openblas: ifort

help:
@echo "make gfortran # gfortran, default"
Expand Down

0 comments on commit 0c6fc59

Please sign in to comment.