-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetenv-github-actions.sh
More file actions
41 lines (30 loc) · 861 Bytes
/
setenv-github-actions.sh
File metadata and controls
41 lines (30 loc) · 861 Bytes
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
36
37
38
39
40
41
#!/bin/sh
#
# Set library paths
# (use after activating the conda environment)
if [ ${ICENET_ENV} ]
then
echo '** ICENET environment already set. Run with: ICENET_ENV=; source setenv.sh to reset **'
else
# Set library paths
# (use after activating the conda environment)
export LD_LIBRARY_PATH="$CONDA_PREFIX/lib:$LD_LIBRARY_PATH"
echo $LD_LIBRARY_PATH
echo "Before:"
ulimit -a
# Set system memory limits
ulimit -s unlimited # stack
#ulimit -u 65536 # num of processes (for Sun Grid Engine use)
#ulimit -v unlimited # virtual memory
echo ""
echo "After:"
ulimit -a
echo ""
export GRID_ID=0
export GRID_NODES=1
echo "GRID_ID=${GRID_ID}"
echo "GRID_NODES=${GRID_NODES}"
echo ""
export ICENET_ENV=True
echo '** ICENET: New environment variables set **'
fi