From 771b18ae9c3aa70f4a2497b59700e06819a6ae30 Mon Sep 17 00:00:00 2001 From: Zhang Xianyi Date: Sun, 8 Feb 2015 01:42:48 -0600 Subject: [PATCH] Detect the wrong combined flags of USE_OPENMP=1 and USE_THREAD=0. --- Makefile.system | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile.system b/Makefile.system index 1d1d48c75..525daa41b 100644 --- a/Makefile.system +++ b/Makefile.system @@ -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