2025-10-23 12:05:41 -07:00
|
|
|
#%Module
|
2025-09-10 10:10:16 -07:00
|
|
|
#######################################################################
|
2022-10-18 10:35:37 +05:30
|
|
|
##
|
|
|
|
|
## Rocm module
|
2025-09-10 10:10:16 -07:00
|
|
|
## Copyright © Advanced Micro Devices, Inc., or its affiliates.
|
|
|
|
|
## SPDX-License-Identifier: MIT
|
2022-10-18 10:35:37 +05:30
|
|
|
##
|
|
|
|
|
|
2024-10-15 12:05:09 -07:00
|
|
|
module-whatis "Adds ROCm binary paths to your environment variable"
|
2022-10-18 10:35:37 +05:30
|
|
|
|
|
|
|
|
proc ModulesHelp { } {
|
|
|
|
|
puts stderr "\tThe ROCM Module."
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-15 12:05:09 -07:00
|
|
|
set ROOT [file normalize [file dirname [file normalize ${ModulesCurrentModulefile}/__]]/../..]
|
2022-10-18 10:35:37 +05:30
|
|
|
|
2024-10-15 12:05:09 -07:00
|
|
|
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}"
|