forked from jlubo/arbor_network_consolidation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
set_arbor_env_simd
executable file
·27 lines (22 loc) · 1.09 KB
/
set_arbor_env_simd
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
#!/bin/bash
# Script that sets environment variables required to run custom Arbor installation
# check if PATH exists and set environment variable accordingly
if [[ ! -v PATH ]]; then
export PATH=$(readlink -f ~/arbor_v0.10.1-dev-b8b768d-simd/bin)
else
export PATH=$(readlink -f ~/arbor_v0.10.1-dev-b8b768d-simd/bin):$PATH
fi
# check if LD_LIBRARY_PATH exists and set environment variable accordingly
if [[ ! -v LD_LIBRARY_PATH ]]; then
export LD_LIBRARY_PATH=$(readlink -f ~/arbor_v0.10.1-dev-b8b768d-simd/lib)
else
export LD_LIBRARY_PATH=$(readlink -f ~/arbor_v0.10.1-dev-b8b768d-simd/lib):$LD_LIBRARY_PATH
fi
# check if PYTHONPATH exists and set environment variable accordingly
if [[ ! -v PYTHONPATH ]]; then
export PYTHONPATH=$(readlink -f ~/arbor_v0.10.1-dev-b8b768d-simd/lib/python3.10/site-packages) # or: .../python3.8/..., etc.
else
export PYTHONPATH=$(readlink -f ~/arbor_v0.10.1-dev-b8b768d-simd/lib/python3.10/site-packages):$PYTHONPATH # or: .../python3.8/..., etc.
fi
# set CMAKE_PREFIX_PATH environment variable
export CMAKE_PREFIX_PATH=$(readlink -f ~/arbor_v0.10.1-dev-b8b768d-simd)