-
Notifications
You must be signed in to change notification settings - Fork 1
/
1.0.0.lua
executable file
·35 lines (29 loc) · 1.11 KB
/
1.0.0.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
-- Load module dependencies
load("afni")
load("ants")
load("c3d")
load("fsl")
load("freesurfer")
load("nodejs")
load("anaconda")
-- Initialize variable names
local ncpus = string.gsub(capture("grep -c '^processor' /proc/cpuinfo"),'\\',"")
local hostname = capture("/bin/hostname -d")
if string.match(hostname, "stanford.edu") then
hostname = "sherlock.stanford.edu"
-- setenv('CRNENV_WORK', '/work/01329/poldrack')
-- setenv('CRNENV_SINGULARITY_IMAGES', pathJoin(os.getenv('CRNENV_WORK'), 'singularity'));
-- append_path('PATH', pathJoin(os.getenv('CRNENV_WORK'), 'singularity'));
end
if string.match(hostname, "stampede") then
setenv('CRNENV_WORK', '/work/03843/crn_plab')
setenv('CRNENV_SINGULARITY_IMAGES', pathJoin(os.getenv('CRNENV_WORK'), 'singularity'));
append_path('PATH', pathJoin(os.getenv('CRNENV_WORK'), 'singularity'));
end
if string.match(hostname, "ls5") then
setenv('CRNENV_WORK', '/work/03843/crn_plab')
end
setenv('CRNENV_EXECUTION_SYSTEM', hostname);
setenv('CRNENV_SYSTEM_NCPUS', ncpus);
-- Enable cwebp compression for reports
append_path('PATH', '/work/01329/poldrack/software/libwebp-0.6.0/bin');