Crate amdgpu_device_libs_build

Source
Expand description

Build script support for amdgpu-device-libs.

Adds linker flags to link device-libs. Add amdgpu-device-libs-build as a build-dependency and call it in the build script.

// build.rs
fn main() {
    amdgpu_device_libs_build::build();
}

This link to the ROCm device-libs and a pre-compiled helper library. The libraries are linked from a ROCm installation. To make sure the libraries are found, set the environment variable ROCM_PATH or ROCM_DEVICE_LIB_PATH (higher priority if it is set). It looks for amdgcn/bitcode/*.bc files in this path. See the documentation of amdgpu-device-libs for more information.

Functionsยง

build
Link libraries for amdgpu-device-libs.