Clusterappl and GPAW modules on Vera

This commit is contained in:
2020-03-03 10:45:19 +01:00
parent 7087d7c876
commit fb4fe04c12
4 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
whatis([==[
Creates $USERAPPL environment variable and adds paths
]==])
local home = os.getenv("HOME")
local nobackup = pathJoin(home, "nobackup")
local userappl = pathJoin(nobackup, "appl")
local git = pathJoin(nobackup, "git")
local pythonp = pathJoin(userappl, "lib/python3.7/site-packages")
local binp = pathJoin(userappl, "bin")
local libp = pathJoin(userappl, "lib")
setenv("MYNOBACKUP", nobackup)
setenv("USERAPPL", userappl)
prepend_path("PYTHONPATH", pythonp)
prepend_path("PATH", binp)
prepend_path("PATH", libp)
execute {cmd='`snakemake --bash-completion`', modeA={"load"}}

View File

View File

@@ -0,0 +1,29 @@
whatis([==[My compiled version of GPAW]==])
conflict("GPAW")
function ld (m)
if not ( isloaded(m) ) then
load(m)
end
end
ld("clusterappl")
local nobackup = os.getenv("MYNOBACKUP")
local root = pathJoin(nobackup, "git/gpaw/20.1.0")
ld("iccifort/2019.5.281")
ld("impi/2018.5.288")
ld("imkl/2019.5.281")
ld("Python/3.7.4")
ld("SciPy-bundle/2019.10-Python-3.7.4")
ld("ASE/3.19.0-Python-3.7.4")
ld("libxc/4.3.4")
ld("gpaw-setups/0.9.20000")
setenv("OMP_NUM_THREADS", 1)
prepend_path("PATH", pathJoin(root, "tools"))
prepend_path("PYTHONPATH", root)
prepend_path("PYTHONPATH", pathJoin(root, "build/lib.linux-x86_64-3.7"))
execute {cmd='complete -o default -C "/usr/bin/python3 ' .. root .. '/gpaw/cli/complete.py" gpaw', modeA={"load"}}