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 links to the ROCm device-libs and a pre-compiled helper library.
The libraries are linked from a ROCm installation.
If libraries are found not found by default, set the environment variable
HIP_DEVICE_LIB_PATH to the bitcode files. The path should end with amdgcn/bitcode
and contain .bc files.
See the documentation of amdgpu-device-libs for more information.
Structs§
- Build
- Build arguments for use in build.rs or proc-macros.
Functions§
- build
- Link libraries for
amdgpu-device-libs. - get_
link_ args - Get build arguments from environment variables and flags.