Detect the wrong combined flags of USE_OPENMP=1 and USE_THREAD=0.

This commit is contained in:
Zhang Xianyi 2015-02-08 01:42:48 -06:00
parent cfa9392ffa
commit 771b18ae9c
1 changed files with 6 additions and 0 deletions

View File

@ -364,6 +364,12 @@ endif
ifeq ($(USE_OPENMP), 1)
#check
ifeq ($(USE_THREAD), 0)
$(error OpenBLAS: Cannot set both USE_OPENMP=1 and USE_THREAD=0. The USE_THREAD=0 is only for building single thread version.)
endif
# ifeq logical or. GCC or LSB
ifeq ($(C_COMPILER), $(filter $(C_COMPILER),GCC LSB))
CCOMMON_OPT += -fopenmp