Install AMD ROCm with ASAN#

ASAN (AddressSanitizer) builds of ROCm are available for specific AMD Instinct GPU architectures and can be installed using the package manager or a tarball.

Important

  • ASAN builds are only available for gfx942 and gfx950 architectures, plus a multiarch build (all, both gfx942 and gfx950).

  • ASAN rpm and debian packages use the naming convention amdrocm-asan10.0 or amdrocm-asan10.0-gfxXYZ.

  • ASAN rpm and debian packages install to /opt/rocm/core-asan-10.0, separate from regular ROCm installations at /opt/rocm/core-10.0.

  • ASAN packages are approximately 4× larger than a standard ROCm installation due to debug symbols and ASAN instrumentation.


Use the following selector to choose your GPU architecture, operating system, and installation method.

Device family
Operating system
Installation method
Installation method
Installation method

Prerequisites#

Before installing ROCm ASAN, make sure your system meets the ROCm hardware, software, and driver requirements. For more information, see Install AMD ROCm.

For system requirements and support information, see the Compatibility matrix.

Install ROCm ASAN#

Use the following instructions to install ROCm ASAN packages on your system.

Post-installation#

After installing ROCm ASAN 10.0.0, complete these post-installation steps to configure your system and validate the installation.

Verify your installation#

Use the following ROCm tools to verify that ROCm ASAN is correctly installed and that your AMD devices are visible to the system.

Use rocminfo to list detected AMD GPUs and confirm that the ROCm runtimes and drivers are correctly installed and loaded:

rocminfo

Use the AMD SMI CLI amd-smi to validate system information:

amd-smi version

Uninstall ROCm ASAN#


Next steps#

To run applications with ASAN instrumentation, ensure the following:

  • Linux kernel ≥ 5.6 with HMM enabled

  • HSA_XNACK=1

  • -fsanitize=address

  • Instrumented runtimes

For more information, see the GPU sanitizer guide.