File: fixopenmpiconf

package info (click to toggle)
python-escript 5.0-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 87,772 kB
  • ctags: 49,550
  • sloc: python: 585,488; cpp: 133,173; ansic: 18,675; xml: 3,283; sh: 690; makefile: 215
file content (16 lines) | stat: -rw-r--r-- 426 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Fixopenmpiconf
--- a/scons/templates/sid_options.py
+++ b/scons/templates/sid_options.py
@@ -21,7 +21,11 @@ escript_opts_version = 203
 #cxx_extra = '-Wno-literal-suffix'
 openmp = True
 #mpi = 'OPENMPI'
-mpi_prefix = '/usr/lib/openmpi'
+
+import os
+
+d_mpi_path = '/usr/include/openmpi'
+mpi_prefix = os.path.split(os.path.realpath(d_mpi_path))[0]
 mpi_libs = ['mpi_cxx', 'mpi']
 netcdf = True
 #umfpack = True