Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPENBLAS_USES_OPENMP variable to handle OpenBLAS threaded with OpenMP #908

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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