New instructions to compile and run applications

22 views
Skip to first unread message

dmontiel

unread,
Nov 25, 2024, 5:56:56 PM11/25/24
to PRISMS-PF Users
Hello, everyone

For the latest PRISMS-PF release we have slightly modify the instructions to compile each application. 

As an example, if you want to run the the Cahn-Hilliard  application:

$ cd applications/cahnHilliard
$ cmake .
$ make -j <nprocs>

This will now generate two executable files: main and main-debug 

The executable main corresponds to the "release" configuration and main-debug corresponds to the "debug" configuration. 

Debug mode is slower, but contains less optimizations and more meaningful error messages. This makes it ideal for application/model code development. 

Release mode has less "safety features" and meaningful error messages, with more optimizations (faster runtime).

Debug execution (serial runs):
$ ./main-debug

Release execution (parallel runs):
$ mpirun -np <nprocs> ./main

Also, note that we have moved the file main.cc to the applications directory, given that this file is identical for all applications. 

Go to the home page of the GitHub repository for more information.

Best,

David


Reply all
Reply to author
Forward
0 new messages