Skip to content

Commit

Permalink
Merge pull request #48 from daiktas/master
Browse files Browse the repository at this point in the history
update conda
  • Loading branch information
vcepaitis authored Aug 26, 2019
2 parents 4974c34 + 973f850 commit b073466
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
3 changes: 2 additions & 1 deletion Env/environment_cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: tf_cpu
channels:
- conda-forge
dependencies:
- root==6.16
- python==2.7.15
- root==6.18.00
- pyyaml==3.12
- h5py==2.7.1
- scipy==1.0.0
Expand Down
3 changes: 2 additions & 1 deletion Env/environment_gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: tf_gpu
channels:
- conda-forge
dependencies:
- root==6.16
- python==2.7.15
- root==6.18.00
- pyyaml==3.12
- h5py==2.7.1
- scipy==1.0.0
Expand Down
6 changes: 3 additions & 3 deletions Env/setupEnvCPU.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ function run_setup()
return 1
fi

wget -P $INSTALL_ABSDIR https://repo.continuum.io/miniconda/Miniconda2-4.3.31-Linux-x86_64.sh &>> $LOGFILE || return 1
bash $INSTALL_ABSDIR/Miniconda2-4.3.31-Linux-x86_64.sh -b -s -p $INSTALL_ABSDIR/miniconda &>> $LOGFILE || return 1
wget -P $INSTALL_ABSDIR https://repo.continuum.io/miniconda/Miniconda2-4.7.10-Linux-x86_64.sh &>> $LOGFILE || return 1
bash $INSTALL_ABSDIR/Miniconda2-4.7.10-Linux-x86_64.sh -b -s -p $INSTALL_ABSDIR/miniconda &>> $LOGFILE || return 1

CONDA_BIN=$INSTALL_ABSDIR/miniconda/bin
export PATH=$CONDA_BIN:$PATH
Expand All @@ -59,7 +59,7 @@ function run_setup()

echo "Create environment for CPU"

conda env create -f $SCRIPT_DIR/environment_cpu.yml -q python=2.7 &>> $LOGFILE || return 1
conda env create -f $SCRIPT_DIR/environment_cpu.yml -q &>> $LOGFILE || return 1
source activate tf_cpu
conda list
source deactivate &>> $LOGFILE || return 1
Expand Down
10 changes: 5 additions & 5 deletions Env/setupEnvFull.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ function run_setup()
return 1
fi

wget -P $INSTALL_ABSDIR https://repo.continuum.io/miniconda/Miniconda2-4.3.31-Linux-x86_64.sh &>> $LOGFILE || return 1
bash $INSTALL_ABSDIR/Miniconda2-4.3.31-Linux-x86_64.sh -b -s -p $INSTALL_ABSDIR/miniconda &>> $LOGFILE || return 1
wget -P $INSTALL_ABSDIR https://repo.continuum.io/miniconda/Miniconda2-4.7.10-Linux-x86_64.sh &>> $LOGFILE || return 1
bash $INSTALL_ABSDIR/Miniconda2-4.7.10-Linux-x86_64.sh -b -s -p $INSTALL_ABSDIR/miniconda &>> $LOGFILE || return 1

CONDA_BIN=$INSTALL_ABSDIR/miniconda/bin
export PATH=$CONDA_BIN:$PATH
Expand All @@ -59,7 +59,7 @@ function run_setup()

echo "Create environment for CPU"

conda env create -f $SCRIPT_DIR/environment_cpu.yml -q python=2.7 &>> $LOGFILE || return 1
conda env create -f $SCRIPT_DIR/environment_cpu.yml -q &>> $LOGFILE || return 1
source activate tf_cpu
conda list
source deactivate &>> $LOGFILE || return 1
Expand All @@ -75,15 +75,15 @@ function run_setup()

echo "Create environment for GPU"

conda env create -f $SCRIPT_DIR/environment_gpu.yml -q python=2.7 &>> $LOGFILE || return 1
conda env create -f $SCRIPT_DIR/environment_gpu.yml -q &>> $LOGFILE || return 1
source activate tf_gpu
conda list
source deactivate &>> $LOGFILE || return 1

echo "Generate setup script"
echo "export PATH="$INSTALL_ABSDIR"/miniconda/bin:\$PATH" > $SCRIPT_DIR/env_gpu.sh
echo "source activate tf_gpu" >> $SCRIPT_DIR/env_gpu.sh
echo "export LD_LIBRARY_PATH="$INSTALL_ABSDIR"/miniconda/envs/tf_cpu/x86_64-conda_cos6-linux-gnu/lib:\$LD_LIBRARY_PATH" >> $SCRIPT_DIR/env_gpu.sh
echo "export LD_LIBRARY_PATH="$INSTALL_ABSDIR"/miniconda/envs/tf_gpu/x86_64-conda_cos6-linux-gnu/lib:\$LD_LIBRARY_PATH" >> $SCRIPT_DIR/env_gpu.sh
echo "export TF_CPP_MIN_LOG_LEVEL=2" >> $SCRIPT_DIR/env_gpu.sh
echo "export OMP_NUM_THREADS=16 #reduce further if out-of-memory" >> $SCRIPT_DIR/env_gpu.sh
echo "ulimit -s unlimited" >> $SCRIPT_DIR/env_gpu.sh
Expand Down

0 comments on commit b073466

Please sign in to comment.