Skip to content

Commit 54ebb94

Browse files
committed
modified: configure.py
1 parent 6f714f3 commit 54ebb94

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

framework/configure.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1888,15 +1888,18 @@ def ncpus():
18881888

18891889
def omp(context):
18901890
context.Message("checking for OpenMP ... ")
1891+
18911892
LIBS = path_get(context,'LIBS')
18921893
CC = context.env.get('CC','gcc')
18931894
flags = context.env.get('CFLAGS','')
18941895
ccflags = context.env.get('CXXFLAGS','')
18951896
lflags = context.env.get('LINKFLAGS','')
1897+
18961898
pgcc = (CC.rfind('pgcc') >= 0)
18971899
gcc = (CC.rfind('gcc') >= 0)
18981900
icc = (CC.rfind('icc') >= 0)
18991901
clang = (CC.rfind('clang') >= 0)
1902+
19001903
if pgcc:
19011904
CFLAGS = flags + ' -mp'
19021905
CXXFLAGS = ccflags + ' -mp'
@@ -1910,7 +1913,7 @@ def omp(context):
19101913
LIBS.append('omp')
19111914
CFLAGS = flags + ' -fopenmp'
19121915
CXXFLAGS = ccflags + ' -fopenmp'
1913-
LINKFLAGS = lflags #+ ' -fopenmp'
1916+
LINKFLAGS = lflags + ' -fopenmp'
19141917
elif icc:
19151918
CFLAGS = flags + ' -qopenmp -D_OPENMP'
19161919
CXXFLAGS = ccflags + ' -qopenmp -D_OPENMP'

0 commit comments

Comments
 (0)