Skip to content

Commit

Permalink
introduced OPENBLAS_USES_OPENMP variable to handle OpenBLAS threaded …
Browse files Browse the repository at this point in the history
…with OpenMP
  • Loading branch information
edoapra committed Nov 9, 2023
1 parent 74936fb commit 1d6ec14
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/config/makefile.h
Original file line number Diff line number Diff line change
Expand Up @@ -3888,7 +3888,14 @@ ifdef BUILD_OPENBLAS
DEFINES += -DOPENBLAS
endif
ifeq ($(shell echo $(BLASOPT) |awk '/openblas/ {print "Y"; exit}'),Y)
DEFINES += -DOPENBLAS
ifdef OPENBLAS_USES_OPENMP
DEFINES += -DBLAS_OPENMP
ifndef USE_OPENMP
$(error USE_OPENMP must be set when OPENBLAS_USES_OPENMP is set)
endif
else
DEFINES += -DOPENBLAS
endif
endif
# NVHPC compilers are distributed wtih OpenBLAS named as libblas/liblapack
ifeq ($(shell echo $(BLASOPT) |awk '/\/nvidia\/hpc_sdk\// {print "Y"; exit}'),Y)
Expand Down

0 comments on commit 1d6ec14

Please sign in to comment.