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