Skip to main content

local_rocm_lib_dir

Function local_rocm_lib_dir 

Source
pub fn local_rocm_lib_dir() -> String
Expand description

The system ROCm runtime’s library directory on THIS box, for ld_library_path_value’s local callers.

flodl-hw resolves it properly ($ROCM_PATH / $HIP_PATH / $HSA_PATH / /opt/rocm, probing lib and lib64 for the actual runtime): detection and the loader path MUST agree, or a box passes the GPU gate on the runtime detection found and then segfaults on the path a weaker resolution composed. Falls back to the $ROCM_PATH-or-convention spelling when no runtime is found — the loader skips a missing path, so the prefix stays harmless.