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.