Debian Codegraph @

rt/csh_swap/mf/Compiler/intel/10.1/gotoblas/1.33.lua

raw
1 -- -*- lua -*-
2 local pkgRoot = "/vol/pkg"
3 local name = "gotoblas"
4 local fn = myFileName():gsub("%.lua$","")
5 local version = barefilename(fn)
6 local pkgName = pathJoin(name,version)
7 local hierA = hierarchyA(pkgName,1)
8 local compiler_dir = hierA[1]:gsub("/","-"):gsub("%.","_")
9 local base = pathJoin(pkgRoot, compiler_dir, pkgName)
10
11 whatis("Name: Gotoblas")
12 whatis("Version: " .. version)
13 whatis("Category: library, mathematics")
14 whatis("Description: Blas Level 1, 2, 3 routines")
15 whatis("URL: http://www.tacc.utexas.edu")
16
17 help([[
18 The gotoblas module defines the following environment variables:
19 TACC_GOTOBLAS_DIR and TACC_GOTOBLAS_LIB for the location
20 of the gotoblas distribution and libraries.
21
22 To use the gotoblas library, include compilation directives
23 of the following form in your link command:
24
25 Single Threaded: -L$TACC_GOTOBLAS_LIB -lgoto_lp64
26
27 You can control the number threads with the SMP version using the
28 OMP_NUM_THREADS environment variable.
29 ]])
30
31 setenv("TACC_GOTOBLAS_DIR",base)
32 setenv("TACC_GOTOBLAS_LIB",base)
33
34 if (os.getenv("LMOD_sys") ~= "Darwin") then
35 prepend_path("LD_LIBRARY_PATH",base)
36 end