Skip to content

Commit

Permalink
SHARE: Switched Macports to use Accelerate framework over OpenBLAS
Browse files Browse the repository at this point in the history
  • Loading branch information
lazersos committed Nov 15, 2024
1 parent 11a196d commit 6cfe376
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion SHARE/make_macports.inc
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,19 @@
#######################################################################
FLAGS_R = -O2 -g -fexternal-blas -fbacktrace -fcheck=all,no-array-temps
FLAGS_D = -O0 -g -fexternal-blas -fbacktrace -fcheck=all,no-array-temps -fbounds-check
LIBS = -L/usr/lib -L/opt/local/lib -lopenblas -lscalapack
LIBS = -L/usr/lib -L/opt/local/lib -lscalapack -framework Accelerate
FLAGS_R += -fallow-argument-mismatch
FLAGS_D += -fallow-argument-mismatch

#######################################################################
# Check for Accelerate Framework/OpenBLAS
#######################################################################
ifneq ("$(wildcard /opt/local/lib/libopenblas*)","")
LIBS += -L/opt/local/lib -lopenblas
else
LIBS += -framework Accelerate
endif


#######################################################################
# MPI Options
Expand Down

0 comments on commit 6cfe376

Please sign in to comment.