ROCm CMake build tools

ROCm CMake build tools#

Applies to Linux and Windows

2024-08-16

2 min read time

ROCm CMake build tools (also known as “rocm-cmake”) is a collection of functions that unify and simplify the CMake code of ROCm components, as well as ensuring consistency across these different components. ROCm CMake build tools are primarily used when building a library, and as such are not runtime dependencies for any generated libraries, packages, or executables.

The build tools can be included into a CMake project by running:

find_package(ROCmCMakeBuildTools)
# or
find_package(ROCM) # deprecated, but included for backwards compatibility

Once the tools have been included in this manner, individual files may be included by running include(<file_name>). The file names, the functions, variables, and macros accessible using each file are described in this documentation.

You can access the build tools on the ROCm CMake GitHub repository. For a complete listing of the features of ROCm CMake refer to Modules and functions.

To contribute to the documentation, refer to Contributing to ROCm.

You can find licensing information on the Licensing page.