People,
I have an important and single question.
I have a cluster with 6 machines Sun Solares, each one with 4 processors. All together I have 24 processors.
master
node01
node02
node03
node04
node05
I'm logged in the master machine.
I used: export USE_MPI=on
in my build.bash file
The problem is that the command ./build.bash -j 24 isn't working. The following error appear:
grep: illegal option -- P
Usage: grep -hblcnsviw pattern file . . .
./build.bash : Unknown option [ 24 ]
Available Options:
-j [N] Compile in parallel using N CPUs
omit argument for all avaliable CPUs
-noclean Do not clean already compiled objects
When I tried to run in the serial mode (I set #export USE_MPI=on), the following error appeared:
make: Fatal error in reader: makefile, line 32: Unexpected end of line seen
Somebody can help me?
Regards!
Run the model on a parallel computer
-
- Posts: 34
- Joined: Wed Mar 11, 2009 4:24 pm
- Location: UFES
Re: Run the model on a parallel computer
There is creating a ROMS executable to be run in parallel and there is executing make in parallel. Can you set "export USE_MPI=on" and then simply run the build script without the -j option?
As for the error, line 32 of the makefile contains code to make sure the make you are using is new enough. What do you get with "make --version"? I get "GNU Make 3.81" - this is the recommended (maybe even required) version to be using.
As for the error, line 32 of the makefile contains code to make sure the make you are using is new enough. What do you get with "make --version"? I get "GNU Make 3.81" - this is the recommended (maybe even required) version to be using.
-
- Posts: 34
- Joined: Wed Mar 11, 2009 4:24 pm
- Location: UFES
Re: Run the model on a parallel computer
Thank you kate.
I got the makefile in the package from ROMS, when I did the svn command.
https://www.myroms.org/wiki/index.php/ROMS_UNSW2008
The file is in the directory src with the others: Atmosphere Compilers Data Lib makefile Master ROMS User Waves
Have I to install the new version "GNU Make 3.81" and keep the file makefile?
When I executed in my own machine (Debian system and gfortran compiler) with the option serial, it did.
thanks!
I got the makefile in the package from ROMS, when I did the svn command.
https://www.myroms.org/wiki/index.php/ROMS_UNSW2008
The file is in the directory src with the others: Atmosphere Compilers Data Lib makefile Master ROMS User Waves
Have I to install the new version "GNU Make 3.81" and keep the file makefile?
When I executed in my own machine (Debian system and gfortran compiler) with the option serial, it did.
thanks!
Re: Run the model on a parallel computer
"make" comes with your Unix/Linux system, at least with the development tools installed. It isn't a part of ROMS. The build script invokes "make" for you, expecting it to be there and of a sufficiently modern version.What do you get with "make --version"?
The makefile on the other hand comes with ROMS and contains the instructions for compiling ROMS. The build script is an optional layer to insulate the timid from the syntax of "make".
-
- Posts: 34
- Joined: Wed Mar 11, 2009 4:24 pm
- Location: UFES
Re: Run the model on a parallel computer
Kate,
I found other error that you already saw.
/afs/posseidon.dern.ufes.br/usr/angelolemos/src# gmake
makefile:235: INCLUDING FILE /afs/posseidon.dern.ufes.br/usr/angelolemos/src/Compilers/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
gmake: *** virtual memory exhausted. Stop.
I'm using the version GNU make 3.81, as you said. I typed "top", but there isn't anything with a great memory.
Why appear this "virtual memory exhausted" ?
How I can figure out this problem?
I found other error that you already saw.
/afs/posseidon.dern.ufes.br/usr/angelolemos/src# gmake
makefile:235: INCLUDING FILE /afs/posseidon.dern.ufes.br/usr/angelolemos/src/Compilers/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
gmake: *** virtual memory exhausted. Stop.
I'm using the version GNU make 3.81, as you said. I typed "top", but there isn't anything with a great memory.
Why appear this "virtual memory exhausted" ?
How I can figure out this problem?
Re: Run the model on a parallel computer
This is plain ROMS straight from the repository with the UPWELLING problem? I'm afraid I no longer have access to a Sun Solaris system to try it on. A web search of that error gives other people solving it by upgrading to version 3.81, so that's a puzzle. What happens if you type "limit" or "ulimit -a"?
Re: Run the model on a parallel computer
This grep error is due to the fact that your default grep command is not gnu's version of grep. The -P option instructs grep to treat the pattern '^\d+$' as a perl style regular expression and is not available in the Solaris versions of grep.angelolemos wrote: grep: illegal option -- P
Usage: grep -hblcnsviw pattern file . . .
./build.bash : Unknown option [ 24 ]
Available Options:
-j [N] Compile in parallel using N CPUs
omit argument for all avaliable CPUs
-noclean Do not clean already compiled objects