|
18 | 18 | % cd scotch/src && cp Make.inc/Makefile.inc.x86-64_pc_linux2.XXXX Makefile.inc |
19 | 19 | % (choose the XXXX that matches your compiler) |
20 | 20 | % Edit Makefile.inc and delete the cflag -DSCOTCH_PTHREAD (see why in 3-ii) |
21 | | -% make ptscotch |
| 21 | +% "make ptscotch" |
| 22 | +% |
| 23 | +% Note: If you build SU2 (7.0.1+) with OpenMP support (-Dwith-omp=true), |
| 24 | +% AND your system supports MPI_THREAD_MULTIPLE, you do not need to |
| 25 | +% delete the -DSCOTCH_PTHREAD flag (but doing so does no harm). |
22 | 26 | % |
23 | 27 | % 3 - Build PaStiX |
24 | 28 | % Extract the tarball downloaded in 1 into "externals" |
|
30 | 34 | % ii - Uncomment the lines for "VERSIONSMP = _nosmp", |
31 | 35 | % SU2 does not currently support MPI+Threads. |
32 | 36 | % iii - Set SCOTCH_HOME as SCOTCH_HOME ?= ${PWD}/../../scotch/ |
33 | | -% iv - Comment out the lines for "Hardware Locality", this is only |
34 | | -% important for an MPI+Threads build. |
35 | | -% v - Optionally look at the BLAS section (required by "make examples") |
36 | | -% make all |
| 37 | +% iv - Comment out the lines for "Hardware Locality", this may only be |
| 38 | +% important for an MPI+Threads build (usually it is not). |
| 39 | +% v - Optionally look at the BLAS section (only required by "make examples") |
| 40 | +% "make all" |
| 41 | +% |
| 42 | +% Note: If you build SU2 (7.0.1+) with OpenMP support (-Dwith-omp=true), |
| 43 | +% skip 3-ii, note however that this may not work well with SU2_CFD_AD. |
| 44 | +% If you do use MPI+Threads, it is important for good performance that your |
| 45 | +% system supports MPI_THREAD_MULTIPLE (SU2_CFD --thread_multiple ...) |
| 46 | +% Furthermore, if MPI_THREAD_MULTIPLE is NOT supported, you need to |
| 47 | +% uncomment the line with "-DPASTIX_FUNNELED" in config.in. |
| 48 | +% Finally, if you just use threads (no MPI) this is not important. |
37 | 49 | % |
38 | 50 | % 4 - Build SU2 |
39 | 51 | % Follow the normal meson build instructions, add -Denable-pastix=true, |
|
42 | 54 | % If you did not build PaStiX and Scotch in the externals folders you must |
43 | 55 | % use -Dpastix_root="some path" and -Dscotch_root="another path" to |
44 | 56 | % indicate where they are RELATIVE to the SU2 directory. |
| 57 | +% You need sequential versions of BLAS. But when using MPI+Threads beware that |
| 58 | +% OpenBLAS needs to have parallel support otherwise the solver will crash, if |
| 59 | +% you get poor performance see 5.4 below. |
45 | 60 | % |
46 | 61 | % 5 - Common problems and known issues |
47 | 62 | % - OpenMPI 4 does not work with PaStiX 5, downgrade to 3.1.4. |
|
67 | 82 | % - CentOS 7.6.1810, gcc 5.4, ompi 3.1.4, mkl 2017 |
68 | 83 | % - CentOS 7.6.1810, gcc 5.4, impi 2018, mkl 2019 |
69 | 84 | % - CentOS 7.6.1810, gcc 8.2, impi 2018, mkl 2019 |
70 | | - |
| 85 | +% |
0 commit comments