Prepare your environment
Code Block |
---|
|
$ module load imasenv/3.24.0/rc # if not set yet |
Info |
---|
Before proceeding any further, make sure you have configured your Kepler environment. Take a look here 00. Initial setup or here 05.3. IMAS - basic topics - environment set-up(POZ'19Oct) |
Sample codes of using mpi
Prepare example:
Code Block |
---|
$ cd mpi/fortran
$ module load imasenv # load environment if not set
$ tree
.
├── expected_output.txt
├── Makefile
├── mpi_batch_fc2k.xml
├── mpi_host_fc2k.xml
├── mpi_open_batch_fc2k.xml
├── mpi_open_host_fc2k.xml
├── mpi_workflow.xml
├── nocpompi.f90
└── run_test.sh |
Run example:
Code Block |
---|
|
$ ./run_test.sh
building actor - mpi_batch_fc2k.xml - OK
Skipping log removal
building actor - mpi_host_fc2k.xml - OK
Skipping log removal
building actor - mpi_open_batch_fc2k.xml - OK
Skipping log removal
building actor - mpi_open_host_fc2k.xml - OK
Skipping log removal
workflow execution - OK
Skipping log removal
mpi - OK
Skipping log removal |
The same example in Kepler:
Image Added
Comparison of actor configurations
Image Added
| Image Added
|
mpi_batch actor configuration | mpi_host actor configuration |
Image Added
| Image Added
|
mpi_open_batch actor configuration | mpi_open_host actor configuration |