This guide provides step-by-step instructions for setting up IntelliPerf on the AMD Developer Cloud environment.
Before starting, ensure you have access to an AMD Developer Cloud and create a GPU Droplet.
First, set up the ROCm environment variables:
export ROCM_PATH=/opt/rocm
export PATH=$ROCM_PATH/bin:$PATH
export LD_LIBRARY_PATH=$ROCM_PATH/libNote: You may want to add these to your shell profile (.bashrc, .zshrc, etc.) for persistence across sessions.
Install the required system packages:
# Update package list
sudo apt-get update && sudo apt-get install -y python3-venv cmake rocm-llvm-dev libzstd-dev libdwarf-devCreate a Python virtual environment to isolate IntelliPerf dependencies:
# Create virtual environment
python3 -m venv intelliperf_env
# Activate virtual environment
source intelliperf_env/bin/activateNote: Always activate the virtual environment before working with IntelliPerf.
git clone git@github.com:AMDResearch/intelliperf.git
cd intelliperfInstall IntelliPerf in development mode:
pip install -e .Install all required tool dependencies:
python3 scripts/install_tool.py --allNext, you can run the examples! See the Examples README for detailed information about available examples and how to run them.