Skip to content

Commit

Permalink
modified: configure.py
Browse files Browse the repository at this point in the history
  • Loading branch information
psava committed Oct 7, 2024
1 parent 6f714f3 commit 54ebb94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion framework/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1888,15 +1888,18 @@ def ncpus():

def omp(context):
context.Message("checking for OpenMP ... ")

LIBS = path_get(context,'LIBS')
CC = context.env.get('CC','gcc')
flags = context.env.get('CFLAGS','')
ccflags = context.env.get('CXXFLAGS','')
lflags = context.env.get('LINKFLAGS','')

pgcc = (CC.rfind('pgcc') >= 0)
gcc = (CC.rfind('gcc') >= 0)
icc = (CC.rfind('icc') >= 0)
clang = (CC.rfind('clang') >= 0)

if pgcc:
CFLAGS = flags + ' -mp'
CXXFLAGS = ccflags + ' -mp'
Expand All @@ -1910,7 +1913,7 @@ def omp(context):
LIBS.append('omp')
CFLAGS = flags + ' -fopenmp'
CXXFLAGS = ccflags + ' -fopenmp'
LINKFLAGS = lflags #+ ' -fopenmp'
LINKFLAGS = lflags + ' -fopenmp'
elif icc:
CFLAGS = flags + ' -qopenmp -D_OPENMP'
CXXFLAGS = ccflags + ' -qopenmp -D_OPENMP'
Expand Down

0 comments on commit 54ebb94

Please sign in to comment.