Using MAP on NREL HPC systems
Allinea MAP is a parallel profiler that can be used to profile serial and parallel applications. It is easy to use and can be used from the GUI or from the command line
To get an interactive session on Peregrine please follow the steps in Running Matlab on Peregrine.
To use this tool on Peregrine:
- Load the Allinea Forge module on Peregrine.
$ module load allinea/5.0
- Make sure that your application is compiled with the debug flag (-g)
- Open the Allinea Forge UI with :
- Configure the application and click
MAP from Command Line:
To profile a program from the command line,use map with --profile option.
$ map --profile -np 4 <executable>
#!/bin/tcsh #PBS -l walltime=04:00:00 #PBS -l nodes=1:ppn=4 #PBS -N Map-Profile #PBS -o std.out #PBS -e std.err #PBS -A <Allocation handle> #PBS -q short module purge <load other modules required for your application> module load allinea/5.0 export OMP_NUM_THREADS=2 map --profile -np 4 <executable>
Remote client for OS/X, Windows and Linux
Can be downloaded from Allinea Forge - Download.
To profile or debug an application on Peregrine with a local Allinea Forge Remote client, edit the remote launch profile;
With Allinea Forge Remote client- version 6, it is possible to view profile files offline. Profile the application on Peregrine and transfer the files to your local machine and view the results offline.