Run model in parallel

88 views
Skip to first unread message

raphael Krier Mariani

unread,
Mar 24, 2021, 4:46:22 PM3/24/21
to funwa...@googlegroups.com
Hi everyone,
I am new to parallel computing and trying to run Funwave in parallel using mpirun and I have some issues with this, I hope that someone could help. 

My hardware set up:
Threads per core: 2
Core per socket: 8
Socket: 1

This is the MPI version I have.
    Version:                                 3.3
    Release Date:                            Wed Nov 21 11:32:40 CST 2018
    CC:                              gcc   -Wl,-Bsymbolic-functions -Wl,-z,relro
    CXX:                             g++   -Wl,-Bsymbolic-functions -Wl,-z,relro
    F77:                             f77  -Wl,-Bsymbolic-functions -Wl,-z,relro
    F90:                             f95  -Wl,-Bsymbolic-functions -Wl,-z,relro 

This is the Make file I made (up to the mpi setting) and generating the executable "test_platform1": 

#----------BEGIN MAKEFILE-------------------------------------------------
            SHELL         = /bin/sh
            DEF_FLAGS     = -P -traditional 
            EXEC          = test_platform1
#==========================================================================
#--------------------------------------------------------------------------
#        PRECISION          DEFAULT PRECISION: SINGLE                     
#                           UNCOMMENT TO SELECT DOUBLE PRECISION
#    
#--------------------------------------------------------------------------

#           FLAG_1 = -DDOUBLE_PRECISION 
            FLAG_2 = -DPARALLEL
            FLAG_3 = -DCARTESIAN
#            FLAG_4 = -DINTEL
#            FLAG_5 = -DCOUPLING
#            FLAG_6 = -DZALPHA
#            FLAG_7 = -DMANNING
#            FLAG_8 = -DVESSEL
#            FLAG_9 = -DMETEO
#            FLAG_10 = -DWIND
#            FLAG_11 = -DSEDIMENT
#            FLAG_12 = -DCHECK_MASS_CONSERVATION
#            FLAG_13 = -DDEBUG
#            FLAG_14 = -DTMP
#            FLAG_15 = -DTRACKING
#--------------------------------------------------------------------------
#  mpi defs 
#--------------------------------------------------------------------------
         CPP      = /usr/bin/cpp 
         CPPFLAGS = $(DEF_FLAGS)
         FC       = mpif90
         DEBFLGS  = 
         OPT      = 
         CLIB     = 

Both my input file (with PX=8, PY=2) and executable are in the source code (.../src/)
From there I type:

mpirun -np 16 test_platform1

This is the error message I obtain:
~/Desktop/FUNWAVE.3.4/src$ mpirun -np 16 /src/test_platform1
[proxy:0:0@raphael-System-Product-Name] HYDU_create_process (utils/launch/launch.c:74): execvp error on file /src/test_platform1 (No such file or directory)
[proxy:0:0@raphael-System-Product-Name] HYDU_create_process (utils/launch/launch.c:74): execvp error on file /src/test_platform1 (No such file or directory)
[proxy:0:0@raphael-System-Product-Name] HYDU_create_process (utils/launch/launch.c:74): execvp error on file /src/test_platform1 (No such file or directory)
[proxy:0:0@raphael-System-Product-Name] HYDU_create_process (utils/launch/launch.c:74): execvp error on file /src/test_platform1 (No such file or directory)
[proxy:0:0@raphael-System-Product-Name] HYDU_create_process (utils/launch/launch.c:74): execvp error on file /src/test_platform1 (No such file or directory)
[proxy:0:0@raphael-System-Product-Name] HYDU_create_process (utils/launch/launch.c:74): execvp error on file /src/test_platform1 (No such file or directory)
[proxy:0:0@raphael-System-Product-Name] HYDU_create_process (utils/launch/launch.c:74): execvp error on file /src/test_platform1 (No such file or directory)
[proxy:0:0@raphael-System-Product-Name] HYDU_create_process (utils/launch/launch.c:74): execvp error on file /src/test_platform1 (No such file or directory)
[proxy:0:0@raphael-System-Product-Name] HYDU_create_process (utils/launch/launch.c:74): execvp error on file /src/test_platform1 (No such file or directory)
[proxy:0:0@raphael-System-Product-Name] HYDU_create_process (utils/launch/launch.c:74): execvp error on file /src/test_platform1 (No such file or directory)
[proxy:0:0@raphael-System-Product-Name] HYDU_create_process (utils/launch/launch.c:74): execvp error on file /src/test_platform1 (No such file or directory)
[proxy:0:0@raphael-System-Product-Name] HYDU_create_process (utils/launch/launch.c:74): execvp error on file /src/test_platform1 (No such file or directory)
[proxy:0:0@raphael-System-Product-Name] HYDU_create_process (utils/launch/launch.c:74): execvp error on file /src/test_platform1 (No such file or directory)
[proxy:0:0@raphael-System-Product-Name] HYDU_create_process (utils/launch/launch.c:74): execvp error on file /src/test_platform1 (No such file or directory)
[proxy:0:0@raphael-System-Product-Name] HYDU_create_process (utils/launch/launch.c:74): execvp error on file /src/test_platform1 (No such file or directory)
[proxy:0:0@raphael-System-Product-Name] HYDU_create_process (utils/launch/launch.c:74): execvp error on file /src/test_platform1 (No such file or directory)

The fact that the message is repeated 16 times makes me think the MPI is running and trying to launch the executable simultaneously. But I can't figure out why I get an error on the file directory. As I tried different directory names (including running it straight as mpirun -np 16 test_platform1 from the source directory)
 
So the question is how do I run it in parallel? how do I direct the MPI to the right directory? 
Thank you for your help and time.

Raphael
  

Soroush Kouhi

unread,
Mar 28, 2021, 4:34:13 PM3/28/21
to raphael Krier Mariani, funwa...@googlegroups.com
Hi Raphael, 

Make sure all of your files are in the same folder including input file,  bathymetry, initial conditions, stations file, and your executive file. You don't need to keep them in the ~/src folder, create a new working directory. Also use "./" before your executive file: mpirun -np 16 ./test_platform1. 

Good luck

--
You received this message because you are subscribed to the Google Groups "funwave-tvd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to funwave-tvd...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/funwave-tvd/CAExzas%3Dqtuai0rpHgXGKoc5zaZDZ-BX6NJ-bdkRFP4MwqmB6rQ%40mail.gmail.com.

raphael Krier Mariani

unread,
Mar 28, 2021, 4:52:25 PM3/28/21
to Soroush Kouhi, funwa...@googlegroups.com
Thanks a lot.
 Problem solved. 
Do you know by any chance how to create a periodic boundary on the eastern corner? Or have a full absorbing sponge at this location?
Thanks,
Raphaël 
Reply all
Reply to author
Forward
0 new messages