Clusterappl and GPAW modules on Vera
This commit is contained in:
@@ -30,6 +30,12 @@ if [ -e /usr/share/lmod/lmod/init/profile ]; then
|
||||
module load python-wrap
|
||||
fi
|
||||
|
||||
case $hostname in
|
||||
vera* )
|
||||
module load clusterappl
|
||||
module load gpaw/Vera/20.1.0
|
||||
esac
|
||||
|
||||
if xhost >& /dev/null ; then
|
||||
# X is running
|
||||
xhost +local:kuba > /dev/null
|
||||
|
||||
20
.modules.kuba/clusterappl.lua
Normal file
20
.modules.kuba/clusterappl.lua
Normal 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"}}
|
||||
0
.modules.kuba/gpaw/.version
Normal file
0
.modules.kuba/gpaw/.version
Normal file
29
.modules.kuba/gpaw/Vera/20.1.0.lua
Normal file
29
.modules.kuba/gpaw/Vera/20.1.0.lua
Normal 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"}}
|
||||
Reference in New Issue
Block a user