-
Notifications
You must be signed in to change notification settings - Fork 15
/
path.sh
23 lines (17 loc) · 758 Bytes
/
path.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
MAIN_ROOT=$HOME/a1003/espnet
export PATH=$PWD/utils/:$PATH
export LC_ALL=C
if [ -f "${MAIN_ROOT}"/tools/activate_python.sh ]; then
. "${MAIN_ROOT}"/tools/activate_python.sh
else
echo "[INFO] "${MAIN_ROOT}"/tools/activate_python.sh is not present"
fi
. "${MAIN_ROOT}"/tools/extra_path.sh
export OMP_NUM_THREADS=1
# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
# You need to change or unset NCCL_SOCKET_IFNAME according to your network environment
# https://docs.nvidia.com/deeplearning/sdk/nccl-developer-guide/docs/env.html#nccl-socket-ifname
export NCCL_SOCKET_IFNAME="^lo,docker,virbr,vmnet,vboxnet"
# NOTE(kamo): Source at the last to overwrite the setting
# . local/path.sh