Skip to content

Lightweight C++ wrapper using RSMI API Library calls for 1ms profiling of power, temperature, frequency and rocprofiler metrics on AMD GPUs

Notifications You must be signed in to change notification settings

hal-uw/rocprofwrap

Repository files navigation

rocprofwrap

Lightweight C++ wrapper using RSMI API Library calls for 1ms profiling of power, temperature, frequency and rocprofiler metrics on AMD GPUs

Build

API calls have been tested with rocm v6.0.2. Compatibility with other rocm versions is not guranteed.

git clone https://github.com/hal-uw/rocprofwrap.git 
module load rocm/6.2.1

Export Relevant Paths

export WRAPPER_ROOT=/work1/sinclair/rnjain/hal-uw/rocprofwrap
export HSA_TOOLS_LIB=/opt/rocm-6.2.1/lib/librocprofiler64.so.1
export LD_LIBRARY_PATH=/opt/rocm-6.2.1/lib/:$LD_LIBRARY_PATH
make

Run command

python rocprofwrap.py --cmd "/work1/sinclair/rnjain/CoralGemm/build/gemm R_64F R_64F R_64F R_64F OP_N OP_T 8640 8640 8640 8640 8640 8640 36 10" --gpus 0 --prefix metrics_mi210 [--counters_file "$COUNTER_FILE"]
python rocprofwrap.py --cmd "/work1/sinclair/rnjain/amd-lab-notes/matrix-cores/mfma_fp32_4x4x1fp32" --gpus 0 --prefix "mfma/mfma_fp32_4x4x1fp32" [--counters_file "$COUNTER_FILE"]
# --counters_file is optional

About

Lightweight C++ wrapper using RSMI API Library calls for 1ms profiling of power, temperature, frequency and rocprofiler metrics on AMD GPUs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages