summarylogtreecommitdiffstats
path: root/modulefile
blob: b269b079460d562c3a2c43bab9a5e4274c230bba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#%Module1.0
#
# Created by Darjan Krijan [https://disc-kuraudo.eu]
#

set MODULE      "aocl-aocc"
set BASE_DIR    "/opt"
set VERSION     "5.0.0"
set MODULE_ROOT "${BASE_DIR}/aocl/aocc"
set MODULE_TEXT "AMD Optimizing CPU Libraries (AOCL)"

conflict aocl-gcc

setenv       AOCL_ROOT       ${MODULE_ROOT}
prepend-path CPATH           ${MODULE_ROOT}/include
prepend-path LIBRARY_PATH    ${MODULE_ROOT}/lib
prepend-path LD_LIBRARY_PATH ${MODULE_ROOT}/lib

module-whatis "${MODULE_TEXT} version ${VERSION}"

proc ModulesHelp {} {
	global MODULE_TEXT
	puts stderr "This module sets up the environment for ${MODULE_TEXT}"
	puts stderr "by adapting the following environment variables:"
	puts stderr "CPATH"
	puts stderr "LIBRARY_PATH"
	puts stderr "LD_LIBRARY_PATH"
}