e94b0f6f8b
This will make rocmmod relocatable
Change-Id: Iefcdf158e975d6d757f55f8854f34d9b989002be
[ROCm/rocm-core commit: b67be0d02c]
19 řádky
582 B
Plaintext
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}"
|