From b079f1f15740e7fdf22ddad906ed40a750f7fe12 Mon Sep 17 00:00:00 2001 From: Dainis Gorbunovs Date: Sun, 11 Feb 2018 15:03:50 +0000 Subject: [PATCH] Load username automatically in sbatch scripts --- gpu_cluster_environment_script.sh | 2 +- gpu_cluster_tutorial_training_script.sh | 2 +- notes/gpu-cluster-quick-start.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gpu_cluster_environment_script.sh b/gpu_cluster_environment_script.sh index e7c1c08..d20d13d 100644 --- a/gpu_cluster_environment_script.sh +++ b/gpu_cluster_environment_script.sh @@ -4,7 +4,7 @@ export CUDA_HOME=/opt/cuda-8.0.44 export CUDNN_HOME=/opt/cuDNN-6.0_8.0 -export STUDENT_ID=sxxxxxx +export STUDENT_ID=$(whoami) export LD_LIBRARY_PATH=${CUDNN_HOME}/lib64:${CUDA_HOME}/lib64:$LD_LIBRARY_PATH diff --git a/gpu_cluster_tutorial_training_script.sh b/gpu_cluster_tutorial_training_script.sh index 0eb872e..8f6c963 100644 --- a/gpu_cluster_tutorial_training_script.sh +++ b/gpu_cluster_tutorial_training_script.sh @@ -10,7 +10,7 @@ export CUDA_HOME=/opt/cuda-8.0.44 export CUDNN_HOME=/opt/cuDNN-6.0_8.0 -export STUDENT_ID=sxxxxxx +export STUDENT_ID=$(whoami) export LD_LIBRARY_PATH=${CUDNN_HOME}/lib64:${CUDA_HOME}/lib64:$LD_LIBRARY_PATH diff --git a/notes/gpu-cluster-quick-start.md b/notes/gpu-cluster-quick-start.md index 5ce7d68..5a4fb47 100644 --- a/notes/gpu-cluster-quick-start.md +++ b/notes/gpu-cluster-quick-start.md @@ -93,7 +93,7 @@ export CUDA_HOME=/opt/cuda-8.0.44 export CUDNN_HOME=/opt/cuDNN-6.0_8.0 -export STUDENT_ID=sxxxxxx +export STUDENT_ID=$(whoami) export LD_LIBRARY_PATH=${CUDNN_HOME}/lib64:${CUDA_HOME}/lib64:$LD_LIBRARY_PATH