File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1888,15 +1888,18 @@ def ncpus():
18881888
18891889def 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'
You can’t perform that action at this time.
0 commit comments