Files
rocm-systems/projects/rocm-core/rocmmod.in
T
nunnikri b6ffa43226 SWDEV-553044 : Adding missing copyright header in rocm-core (#875)
SWDEV-553044 : Adding missing copyright header in rocm-core
2025-09-10 10:10:16 -07:00

21 lines
669 B
Plaintext

#######################################################################
##
## Rocm module
## Copyright © Advanced Micro Devices, Inc., or its affiliates.
## SPDX-License-Identifier: MIT
##
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}"