You are here: TWiki> Groups/ALL Web>ProfileYourJobsWithScalasca (2011-07-15, Paschalis_20Korosoglou)Facebook Twitter
Tags:
create new tag
, view all tags
Scalasca is an open-source toolset that can be used to analyze the performance behavior of parallel applications and to identify opportunities for optimization. It is developed by the Juelich Supercomputing Centre.

To use scalasca in full functionality on the User Interface you first need to login with X window forwarding enabled.

The next step is to load the scalasca modulefile (alongside the intel compiler and the mpich or mpich2 implementation).

module load intel mpich2 scalasca

Compilation thereafter is straightforward. We will use ctest.c as an example. When compiling we have to prepend the skin command to the mpi wrapper compiler script:

skin mpicc ctest.c -o ctest

You are now ready to download and transfer the jdl file and the executable script to the UI. We will name these job.jdl and run.sh respectively. You need not make any changes in the run.sh script. In the job.jdl file you may want to change the value "ctest" in the Arguments and InputSandbox lines to match with the name of your skinned executable. You may also change the number of mpi processes by changing the argument in the CpuNumber line.

You need not make any further changes to these files.

To submit your job, as usual issue the following command.

glite-wms-job-submit -a -o jobid job.jdl

To retrieve the output of your submit once it is in the Done state use the following command.

glite-wms-job-output --dir ./out -i jobid

Change directory into the out folder (cd out) and untar the epik tar file:

tar xvf epik.tar

You are now ready to view the profiling results by issuing the command

square epik_a_X_sum

where X is equal to the number of mpi processes you defined in the job.jdl file.

A new window similar to the one below will open on your monitor. You may use the menus to locate bottlenecks and investigate the performance of your code.

epik.png

Topic attachments
I Attachment Action Size Date Who Comment
cc ctest.c manage 4.2 K 2009-12-15 - 08:28 PaschalisKorosoglou Example source file
pngpng epik.png manage 72.9 K 2009-12-15 - 00:09 PaschalisKorosoglou Scalasca screenshot
elsejdl job.jdl manage 0.3 K 2009-12-15 - 09:24 PaschalisKorosoglou JDL file
shsh run.sh manage 0.2 K 2009-12-15 - 00:11 PaschalisKorosoglou Executable script


Topic revision: r10 - 2011-07-15 - 07:47:24 - Paschalis_20Korosoglou
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback