Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

1.How to set environment to use IMAS FC2K Testing Framework

1.1. Prepare Kepler 

Code Block
linenumberstrue
module load imasenv
install_kepler.sh [target diroptions] [local source Kepler] [description]kepler_name]
switch_to_kepler [kepler_name]

1.2

...

If you want to work with most recent codes of FC2K (not released yet), you should either get it from trunk or from development branch

Code Block
linenumberstrue
svn checkout http://gforge6.eufus.eu/svn/fc2k
cd fc2k/trunk
make
source ./setup

If you want to work with development branch (it might have new features but, at the same time, it might be little bit behind current developments inside trunk) you can checkout a particular branch of FC2K.

...

languagebash

...

.

...

Using installed IMAS FC2K release

In case you want to test your actor, and you are not interested in most recent developments inside FC2K, you can always use already installed version of FC2K

Code Block
languagebash
> module availav imas-fc2k

------------------------------------------------------------------------------------ /gw/swimas/modulesetc/itm modulefiles ------------------------------------------------------------------------------------
fc2k/R3.0.11 fc2k/R3.0.14 fc2k/R3.0.5  fc2k/rcimas-fc2k/4.0.0       imas-fc2k/4.1.0.fix   imas-fc2k/4.2.3B      imas-fc2k/4.2.6       imas-fc2k/4.5.0       imas-fc2k/alpha
imas-fc2k/4.0.2       imas-fc2k/4.2.2       imas-fc2k/4.2.3B_mfix imas-fc2k/4.3.0       imas-fc2k/4.6.1       imas-fc2k/beta
imas-fc2k/4.1.0       imas-fc2k/4.2.3       imas-fc2k/4.2.5       imas-fc2k/4.4.0       imas-fc2k/4.6.4

> module switch fc2k/R3.0.14imas-fc2k/{version} 
OR
> module switch imas-fc2k

In this case, you will run FC2K Testing Framework with a released version of FC2K.

2. Checking out IMAS FC2K Testing Framework

IMAS FC2K Testing Framework is a set of components that allow to test whole chain of execution. From native code compilation to workflow execution.

Code Block
$> svngit coclone httphttps://gforge6.eufus.eu/svn/fc2ktf
$> cd fc2ktf/trunk/TestingFramework{ITER_USERNAME}@git.iter.org/scm/imex/fc2k-testing-framework.git
$> cd fc2k-testing-framework
$> ./run_test.sh
--- Starting test for: eq2eq ---
Actor: eq2eq - OK
Skipping log removal
--- Finished test for: eq2eq ---
--- Starting test for: eq2eqmpi ---
Actor: eq2eqmpi - OK
Skipping log removal
--- Finished test for: eq2eqmpi ---
--- Starting test for: mpi ---
Actor: mpi - OK
Skipping log removal
--- Finished test for: mpi ---
--- Starting test for: nocpo ---
Actor: nocpo - OK
Skipping log removal
--- Finished test for: nocpo ---
--- Starting test for: nocpo_param ---
Actor: nocpo_param - OK
Skipping log removal
--- Finished test for: nocpo_param ---
--- Starting test for: stringinout ---
Actor: stringinout - OK
Skipping log removal
--- Finished test for: stringinout ---

...

  • FC2K projects
  • Kepler workflows
  • expected output
  • Make file
  • execution script

Code Block
languagebash
 
mpi
|-- expected_output.txt                - this file contains expected output of execution
|-- fc2k_nocpo_mpi_batch.xml           - actor that will be started on batch nodes
|-- fc2k_nocpo_mpi_host.xml            - actor that will be started on Gateway machine
|-- fc2k_nocpo_mpi_open_batch.xml      - actor that will use OpenMP in batch mode
|-- fc2k_nocpo_mpi_open_host.xml       - actor that will use OpenMP on Gateway
|-- Makefile                           - provides recipe for building actor's library
|-- nocpompi.f90                       - source code of actor
|-- run_test.sh                        - executes tests and reports the outcome
`-- workflow_mpi_chain.xml             - workflow that runs all the actors

...