-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* trying different ci image * using python instead of python3 * updated run scripts for using new image * adding conda
- Loading branch information
Showing
3 changed files
with
46 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,25 @@ | ||
#!/bin/bash | ||
set -ev | ||
|
||
CONDA_ENV=dibasis | ||
PYTHON=python | ||
|
||
export HIPPYLIB_PATH=$(pwd)/hippylib | ||
export HIPPYFLOW_PATH=$(pwd)/hippyflow | ||
|
||
# This is for running MPI on root in the docker container | ||
export OMPI_MCA_btl_vader_single_copy_mechanism=none | ||
export OMPI_ALLOW_RUN_AS_ROOT=1 | ||
export OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 | ||
|
||
# Run poisson example | ||
cd examples/poisson | ||
|
||
python3 driver_poisson_mean.py | ||
conda init | ||
source ~/.bashrc | ||
conda activate $CONDA_ENV | ||
|
||
$PYTHON driver_poisson_mean.py | ||
|
||
mpirun -n 2 python3 driver_poisson_mean.py | ||
mpirun -n 2 --oversubscribe python driver_poisson_mean.py | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,27 @@ | ||
#!/bin/bash | ||
set -ev | ||
|
||
PYTHON=python3 | ||
|
||
CONDA_ENV=dibasis | ||
PYTHON=python | ||
export HIPPYLIB_PATH=$(pwd)/hippylib | ||
|
||
# This is for running MPI on root in the docker container | ||
export OMPI_MCA_btl_vader_single_copy_mechanism=none | ||
export OMPI_ALLOW_RUN_AS_ROOT=1 | ||
export OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 | ||
|
||
# Run the code | ||
cd soupy/test | ||
|
||
conda init | ||
source ~/.bashrc | ||
conda activate $CONDA_ENV | ||
|
||
$PYTHON -m unittest discover -v | ||
$PYTHON -m unittest discover -v -p 'ptest_*' | ||
|
||
mpirun -n 4 $PYTHON ptest_meanVarRiskMeasureSAA.py | ||
mpirun -n 4 $PYTHON ptest_scipyCostWrapper.py | ||
mpirun -n 4 $PYTHON ptest_superquantileSAA.py | ||
mpirun -n 4 $PYTHON ptest_transformedMeanRiskMeasureSAA.py | ||
mpirun -n 2 --oversubscribe $PYTHON ptest_meanVarRiskMeasureSAA.py | ||
mpirun -n 2 --oversubscribe $PYTHON ptest_scipyCostWrapper.py | ||
mpirun -n 2 --oversubscribe $PYTHON ptest_superquantileSAA.py | ||
mpirun -n 2 --oversubscribe $PYTHON ptest_transformedMeanRiskMeasureSAA.py | ||
|