Coarray Fortran
How to compile and run a Coarray Fortran code on Lindgren
Coarray Fortran (CAF) is available on Lindgren via the Cray Compilation Environment (CCE). To load the CCE:
module swap PrgEnv-pgi PrgEnv-cray
To compile your Coarray Fortran code:
ftn -h caf -o CAFexec CAFcode.f
Note that "-h caf" flag for the ftn compiler.
To run the CAF code, use the aprun command. This batch script is an example for running the UPC code on 4 cores of 1 node:
#PBS -l mppwidth=4#PBS -l mppnppn=4#PBS -l walltime=00:10:00#PBS -j eo#PBS -Vcd $PBS_O_WORKDIRaprun -n 4 ./CAFexec > output_caf
You can also read more general information about PDC's research on PGAS languages on our research web.


