From 32d6580239562644e2591437bc1fe0ff1233f348 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Fri, 21 Sep 2018 20:33:16 +0000 Subject: science/py-PyFR: Fix the OpenMP computation mode by adding -I and -L flags to the compiler command. Also fix license. --- science/py-PyFR/files/patch-pyfr_backends_openmp_compiler.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 science/py-PyFR/files/patch-pyfr_backends_openmp_compiler.py (limited to 'science/py-PyFR/files/patch-pyfr_backends_openmp_compiler.py') diff --git a/science/py-PyFR/files/patch-pyfr_backends_openmp_compiler.py b/science/py-PyFR/files/patch-pyfr_backends_openmp_compiler.py new file mode 100644 index 000000000000..f77a4b146f77 --- /dev/null +++ b/science/py-PyFR/files/patch-pyfr_backends_openmp_compiler.py @@ -0,0 +1,11 @@ +--- pyfr/backends/openmp/compiler.py.orig 2018-03-19 21:34:24 UTC ++++ pyfr/backends/openmp/compiler.py +@@ -76,6 +76,8 @@ class SourceModule(object): + '-Ofast', # Optimise, incl. -ffast-math + '-march=native', # Use CPU-specific instructions + '-fopenmp', # Enable OpenMP support ++ '-I%%LOCALBASE%%/include', # Add the include directory ++ '-L%%LOCALBASE%%/lib', # Add the library directory + '-fPIC', # Generate position-independent code + '-o', libname, srcname, # Library and source file names + '-lm' # Link against libm -- cgit v1.2.3