04_pure-mpi/03_tofu-barrier

Hands-on: Collective communication and Tofu Barrier Interconnect

C/C++

How to compile and how to execute

1. Compile program

$ cd c/elm3 $ make # make -f Makefile.own # if using own compiler $ ls run.x ... $ cd c/elm6 $ make # make -f Makefile.own # if using own compiler $ ls run.x ... $ cd c/elm6.sep $ make # make -f Makefile.own # if using own compiler $ ls run.x ...

2. Run program

## To run as a batch job $ cd c/results $ pjsub task.sh ## Or, to run in an interactive job $ cd c/results $ bash task.sh

Exercises A

Exercises B (advanced)

Fortran

How to compile and how to execute

1. Compile program

$ cd fortran/elm3 $ make # make -f Makefile.own # if using own compiler $ ls run.x ... $ cd fortran/elm6 $ make # make -f Makefile.own # if using own compiler $ ls run.x ... $ cd fortran/elm6.sep $ make # make -f Makefile.own # if using own compiler $ ls run.x ...

2. Run program

## To run as a batch job $ cd fortran/results $ pjsub task.sh ## Or, to run in an interactive job $ cd fortran/results $ bash task.sh

Exercises A

Exercises B (advanced)