CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

MPI+OpenMP SU2-5.0.0

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2017, 00:33
Default MPI+OpenMP SU2-5.0.0
  #1
New Member
 
WANG,Hao
Join Date: Sep 2016
Location: Xi'an China
Posts: 19
Rep Power: 9
Haowang is on a distinguished road
Hello everyone,
I'll read a paper http://web.stanford.edu/~economon/do...-2015-1949.pdf about maximizing parallelism. I noticed that SU2-5.0 surpports hybridization to MPI+OpenMP. The author found that for a specified case the best performance is obtained for 6 MPI ranks (with 8 OMP threads attached to each rank).

But i don't know how to set the hybridization settings, for example, excuting SU2_CFD in 6 MPI ranks (with 8 OMP threads attached to each rank). The command for parallelization of SU2 is "mpirun -n 6 SU2_CFD config.cfg" or "parallel_computation.py -n 6 -f config.cfg" ,and there is nothing to do with the hybridization settings, or it is automatic internal SU2 ? Could anyone help me with this? Thank you very much!
By the way, I have made some attempts on a cluster (the job-submittal environment is slurm):
#!/bin/bash
export OMP_NUM_THREADS=6
yhrun -N 1 -n 2 -c 6 -p debug SU2_CFD opt_crm.cfg
where 'N' is the number of nodes (there are 12 physical cores), 'n' is the number of ranks, 'c' is the number of threads. But it seems that SU2_CFD runs on only 2 cores.
I also tried:
#!/bin/bash
export OMP_NUM_THREADS=6
yhrun -n 2 -c 6 -p debug finite_differences.py -n 12 -f opt_crm.cfg
then SU2 returns this message "srun: error: Unable to create job step: More processors requested than permitted"

ps: When i built the code with:
./configure --prefix=/vol6/home/zhhan/wh/SU-5TEST CXXFLAGS="-O3" --enable-mpi
make -j 12
It returns many warnings like:
"Gklib/csr.c(1574):warning #161: unrecognized #pragma #pragma omp parallel if (rowptr[nrows] >OMPMINOPS)"

Last edited by Haowang; March 27, 2017 at 04:00. Reason: adding new information
Haowang is offline   Reply With Quote

Old   March 27, 2017, 05:24
Default
  #2
Super Moderator
 
Tim Albring
Join Date: Sep 2015
Posts: 195
Rep Power: 10
talbring is on a distinguished road
Hi Haowang,

SU2 currently does not support hybrid parallelization using MPI+OpenMP. The modifications regarding this in the linked paper were done in a special version of the code.

Tim
talbring is offline   Reply With Quote

Old   March 27, 2017, 05:32
Default
  #3
New Member
 
WANG,Hao
Join Date: Sep 2016
Location: Xi'an China
Posts: 19
Rep Power: 9
Haowang is on a distinguished road
Quote:
Originally Posted by talbring View Post
Hi Haowang,

SU2 currently does not support hybrid parallelization using MPI+OpenMP. The modifications regarding this in the linked paper were done in a special version of the code.

Tim
Thanks Tim, it helps a lot!
Haowang is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why not SU2 use OpenMP or MKL? codezy SU2 1 April 3, 2014 20:13
SU2 compilation with MPI option vinz SU2 Installation 5 March 7, 2013 03:02
Sgimpi pere OpenFOAM 27 September 24, 2011 07:57
Error using LaunderGibsonRSTM on SGI ALTIX 4700 jaswi OpenFOAM 2 April 29, 2008 10:54
Is Testsuite on the way or not lakeat OpenFOAM Installation 6 April 28, 2008 11:12


All times are GMT -4. The time now is 21:09.