06_llio/02_sharedtmp

Hands-on: File output using Shared Temporary Region

## example: $ pjsub --interact -g [group_id] -L "node=4, elapse=6:00:00" --sparam "wait-time=unlimited" --llio sharedtmp-size=10Gi -x PJM_LLIO_GFSCACHE=/vol0004 --mpi max-proc-per-node=1

C++

How to compile and how to execute

1. Compile a program.

$ cd cpp $ make # make -f Makefile.own # if using own compiler $ ls main.cpp main.lst main.o run.x

Fortran

How to compile and how to execute

1. Compile a program.

$ cd fortran $ make # make -f Makefile.own # if using own compiler $ ls main.f90 main.lst main.o run.x

2. Run Program

## To run as a batch job $ cd ShardTmp $ pjsub task.sh $ cd 2ndLayerCache $ pjsub task.sh ## or , to run in an interactive job $ cd ShardTmp $ bash task.sh $ cd 2ndLayerCache $ bash task.sh

Exersises A

Exersises B (optional)