Browse Source

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

tags/v0.2.14^2
Zhang Xianyi 11 years ago
parent
commit
771b18ae9c
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      Makefile.system

+ 6
- 0
Makefile.system 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


Loading…
Cancel
Save