Skip to content

Exercises

The main goal is to try out what you have learned in the course on your own code for the hackathon.

There are also AMD exercises available in the online document "LUMI pre-hackathon training - May 2025". A local copy is also available.

The exercises use the GitHub repository amd/HPCTrainingExamples. The content of the GitHub repository as it was during the course can also be found in the files exercises-AMD-20250507.tar and exercises-AMD-20250507.tar.bz2 on in /appl/local/training/profiling-20250507/files on LUMI.

Q&A

  1. srun rocprof --stats nbody-orig 65536, what is number 65536 in here?

    • A command line argument for the nbody-orig command: The number of bodies to use in the simulation, so determining the size of the problem. See the "main" function in the code. When not given, the default is 30000.
  2. In the "content for rocprof_counters.txt" section of the example - what does the "pmc" mean?

    • It means that that line in the input file specifies a number of counters that you want to see. If you'd have time to go through the rocprof documentation: There is more that goes into this file, like you can give specific kernels or gpus you want to monitor. It is an abbreviation for Performance Monitoring Counters.

      In the newest version it is actually recommended to use one of the different more powerful input formats (in JSON or YAML, both not really widespread in the HPC community) which offer even more options.

  3. If I want to use rocprofv2 with --plugin perfetto, is there any module I should load? I tried to profile julia code using guide in https://amdgpu.juliagpu.org/stable/profiling/#rocprof. Everything worked, but the results can not be analysed by https://ui.perfetto.dev/

    • Samuel is busy in one of the rooms. I wonder if it makes sense to try with rocprofv3 from the rocm/6.2.2 module? I'm not sure which versions of rocprof need a special version of Perfetto.

    It works with rocm/6.2.2. I didn't see the results because the example run time is too short. I found it by zoom-in finally. Thanks!