Skip to content

Commit 771b18a

Browse files
committed
Detect the wrong combined flags of USE_OPENMP=1 and USE_THREAD=0.
1 parent cfa9392 commit 771b18a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Makefile.system

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,12 @@ endif
364364

365365

366366
ifeq ($(USE_OPENMP), 1)
367+
368+
#check
369+
ifeq ($(USE_THREAD), 0)
370+
$(error OpenBLAS: Cannot set both USE_OPENMP=1 and USE_THREAD=0. The USE_THREAD=0 is only for building single thread version.)
371+
endif
372+
367373
# ifeq logical or. GCC or LSB
368374
ifeq ($(C_COMPILER), $(filter $(C_COMPILER),GCC LSB))
369375
CCOMMON_OPT += -fopenmp

0 commit comments

Comments
 (0)