-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc-Linux
33 lines (27 loc) · 1.13 KB
/
.zshrc-Linux
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
# NVHPC
NVARCH="$(uname -s)_$(uname -m)"; export NVARCH
NVCOMPILERS="/opt/nvidia/hpc_sdk"; export NVCOMPILERS
MANPATH="$MANPATH:$NVCOMPILERS/$NVARCH/24.9/compilers/man"; export MANPATH
PATH="$NVCOMPILERS/$NVARCH/24.9/compilers/bin:$PATH"; export PATH
# MPI
export PATH="$NVCOMPILERS/$NVARCH/24.9/comm_libs/mpi/bin:$PATH"
export PATH="$MANPATH:$NVCOMPILERS/$NVARCH/24.9/comm_libs/hpcx:$PATH"
export MANPATH="$MANPATH:$NVCOMPILERS/$NVARCH/24.9/comm_libs/mpi/man:$MANPATH"
# Set LD_LIBRARY_PATH based on hostname
if [[ $(hostname) == "hilliard-taa-lab" ]]; then
# CUDA Lib Path (Hilliard)
export LD_LIBRARY_PATH="/opt/nvidia/hpc_sdk/Linux_x86_64/24.9/cuda/lib64:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH="/opt/nvidia/hpc_sdk/Linux_x86_64/24.9/cuda/../math_libs/lib64:$LD_LIBRARY_PATH"
fi
if [[ $(hostname) == "ubuntu" ]]; then
# Custom Lib and Include Path (gpucluster)
export LD_LIBRARY_PATH="/home/jitin/lib:$LD_LIBRARY_PATH"
export CPATH="/home/jitin/include:$CPATH"
fi
# Ruby
export GEM_HOME="$HOME/gems"
export PATH="$HOME/gems/bin:$PATH"
# Zoxide etc.
export PATH="$HOME/.local/bin:$PATH"
# zoxide
eval "$(zoxide init zsh)"