Files
rocm-systems/projects/rocm-core/rocmmod.in
T
Ranjith Ramakrishnan e94b0f6f8b SWDEV-489527 - Remove hard coded paths in rocmmod
This will make rocmmod relocatable

Change-Id: Iefcdf158e975d6d757f55f8854f34d9b989002be


[ROCm/rocm-core commit: b67be0d02c]
2024-10-23 16:21:23 -05:00

19 řádky
582 B
Plaintext

#%Module1.0######################################################################
##
## Rocm module
##
module-whatis "Adds ROCm binary paths to your environment variable"
proc ModulesHelp { } {
puts stderr "\tThe ROCM Module."
}
set ROOT [file normalize [file dirname [file normalize ${ModulesCurrentModulefile}/__]]/../..]
prepend-path PATH "${ROOT}/@CMAKE_INSTALL_BINDIR@:${ROOT}/lib/llvm/bin"
prepend-path MANPATH "${ROOT}/@CMAKE_INSTALL_MANDIR@:${ROOT}/lib/llvm/share/man1"
prepend-path CMAKE_PREFIX_PATH "${ROOT}"
setenv ROCM_PATH "${ROOT}"
setenv HIP_PATH "${ROOT}"