-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add scotch modulefile ito hpc-stack/modulefiles/compiler/compilerName…
…/compilerVersion for cases of serial installation.
- Loading branch information
1 parent
073876c
commit f9dcf4b
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
modulefiles/compiler/compilerName/compilerVersion/scotch/scotch.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
help([[Scotch is a software package for graph and mesh/hypergraph partitioning, | ||
graph clustering, and sparse matrix ordering.]]) | ||
|
||
local pkgName = myModuleName() | ||
local pkgVersion = myModuleVersion() | ||
local pkgNameVer = myModuleFullName() | ||
|
||
local hierA = hierarchyA(pkgNameVer,1) | ||
local compNameVer = hierA[1] | ||
local compNameVerD = compNameVer:gsub("/","-") | ||
|
||
conflict(pkgName) | ||
|
||
depends_on("zlib") | ||
|
||
local opt = os.getenv("HPC_OPT") or os.getenv("OPT") or "/opt/modules" | ||
|
||
local base = pathJoin(opt,compNameVerD,pkgName,pkgVersion) | ||
|
||
prepend_path("PATH", pathJoin(base,"bin")) | ||
prepend_path("MANPATH", pathJoin(base,"man")) | ||
prepend_path("LIBRARY_PATH", pathJoin(base,"lib")) | ||
prepend_path("LD_LIBRARY_PATH", pathJoin(base,"lib")) | ||
prepend_path("DYLD_LIBRARY_PATH", pathJoin(base,"lib")) | ||
prepend_path("CPATH", pathJoin(base,"include")) | ||
prepend_path("CMAKE_PREFIX_PATH", base) | ||
|
||
setenv("scotch_ROOT", base) | ||
setenv("scotch_VERSION", pkgVersion) | ||
|
||
whatis("Name: ".. pkgName) | ||
whatis("Version: " .. pkgVersion) | ||
whatis("Category: library") | ||
whatis("Description: " .. pkgName .. " library") |