diff --git a/video_prediction_tools/HPC_scripts/wrapper_container.sh b/video_prediction_tools/HPC_scripts/wrapper_container.sh deleted file mode 100755 index ebae8a82520054bdf150295f2c04af6ae53e1b2b..0000000000000000000000000000000000000000 --- a/video_prediction_tools/HPC_scripts/wrapper_container.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash - -# basic directory variables -ENV_SETUP_DIR=`pwd` -WORKING_DIR="$(dirname "$ENV_SETUP_DIR")" -EXE_DIR="$(basename "$ENV_SETUP_DIR")" -VENV_DIR=$WORKING_DIR/$1/$1 -shift # replaces $1 by $2, so that $@ does not include the name of the virtual environment anymore - -# sanity checks -if [[ "${EXE_DIR}" != "HPC_scripts" ]]; then - echo "ERROR: Run the setup-script for the environment from the HPC_scripts-directory!" - exit -fi - -if ! [[ -d "${VENV_DIR}" ]]; then - echo "ERROR: Could not found virtual environment under ${VENV_DIR}!" - exit -fi - -#expand PYHTONPATH -# Include site-packages from virtual environment... -unset PYTHONPATH -export PYTHONPATH=${VENV_DIR}/lib/python3.8/site-packages/:$PYTHONPATH -# ... dist-packages from container singularity... -export PYTHONPATH=/usr/local/lib/python3.8/dist-packages:$PYTHONPATH -# ... and modules from current -export PYTHONPATH=${WORKING_DIR}:$PYTHONPATH -export PYTHONPATH=${WORKING_DIR}/utils:$PYTHONPATH - -# Control -echo "****** Check PYTHONPATH *****" -echo $PYTHONPATH -# MPI realted environmental variables -export PMIX_SECURITY_MODE="native" -export TF_XLA_FLAGS=--tf_xla_auto_jit=0 # disable XLA graph optimization -$@