Build the ROCm Core SDK from source#

2025-10-23

3 min read time

Applies to Linux and Windows

You can build the ROCm Core SDK from source using the open-source unified build system TheRock. To learn more about the motivation and architecture behind this system, see ROCm 7.9 Technology Preview: ROCm Core SDK and TheRock Build System.

This page consists mostly of key references to TheRock’s README and supporting development manuals which provide up-to-date build instructions and guidance for supported platforms. See TheRock Development Guide to learn about the overall build architecture.

Tip

Building from source is recommended only if you need custom builds or are contributing to ROCm development. For most users, installing from official AMD releases is faster and easier. See Install AMD ROCm 7.9.0 for installation instructions.

Prerequisites#

A successful build depends on a correctly configured environment. Before you begin, ensure your system meets all hardware and software requirements. Review the following resources:

High-level build process#

For an overview of the build architecture, start with TheRock’s development guide. While specific commands vary by platform, the general workflow for building from source involves these stages:

  1. Clone the repository and install build dependencies. See Platform-specific setup.

  2. Configure the build: Use CMake feature flags to configure the build. This step allows you to target specific platforms, build subsets of ROCm Core SDK components, and toggle component features. See Build configuration for optional and required build flags.

  3. Execute the build: Run the build command to compile the source code. This can be a time- and resource-intensive process. See CMake build usage.

  4. After a successful build, the outputs are available for use in downstream tasks. To learn more about build outputs, see the relevant TheRock documentation. Common post-build tasks include:

    • Using build/dist/rocm: When the build completes, you should have a build of ROCm in the build/dist/rocm/ directory. See Using installed tarballs for more information.

    • Building Python packages: Prepare the build artifacts for distribution as Python packages. See Building Python packages.

    • Building PyTorch: Build a compatible PyTorch version against ROCm wheels. See the PyTorch build instructions.

Platform-specific setup#

ManyLinux#

On Linux, it’s recommended to build with ManyLinux to produce binaries that are portable across Ubuntu and other Linux distributions. To learn more about what a ROCm ManyLinux build entails, see ManyLinux builds. Refer to ManyLinux x86_84 in the environment setup guide.

Ubuntu 24.04#

TheRock provides detailed instructions and scripts for preparing an Ubuntu 24.04 system, including installing necessary packages via apt. Refer to Setup — Ubuntu 24.04 in the TheRock repository for guidance.

Windows 11#

For setup instructions on Windows 11 using Visual Studio 2022, see Setup — Windows 11 in the TheRock repository.

See also

For details on supported configurations, known issues, and other Windows-specific considerations, review the Windows support documentation.