This repository was archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'debug' of github.itap.purdue.edu:MintonGroup/swiftest i…
…nto debug
- Loading branch information
Showing
37 changed files
with
682 additions
and
604 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ dump* | |
!docker/ | ||
!singularity/ | ||
!Dockerfile | ||
!swiftest.def | ||
!environment.yml | ||
|
||
bin/ | ||
build/* | ||
|
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
!bin/ | ||
!bin/swiftest_driver | ||
!bin/swiftest | ||
!install.sh |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh -- | ||
OMP_NUM_THREADS=${OMP_NUM_THREADS:-`nproc --all`} | ||
FOR_COARRAY_NUM_IMAGES=${FOR_COARRAY_NUM_IMAGES:-1} | ||
apptainer run --bind $(pwd):$(pwd) --cleanenv --env OMP_NUM_THREADS=${OMP_NUM_THREADS},FOR_COARRAY_NUM_IMAGES=${FOR_COARRAY_NUM_IMAGES} ${SWIFTEST_SIF} "$@" |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh -- | ||
OMP_NUM_THREADS=${OMP_NUM_THREADS:-`nproc --all`} | ||
FOR_COARRAY_NUM_IMAGES=${FOR_COARRAY_NUM_IMAGES:-1} | ||
apptainer exec --bind $(pwd):$(pwd) --env OMP_NUM_THREADS=${OMP_NUM_THREADS},FOR_COARRAY_NUM_IMAGES=${FOR_COARRAY_NUM_IMAGES} ${SWIFTEST_SIF} swiftest_driver "$@" |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh -- | ||
# This will install the Apptainer version of the swiftest_driver in place of the native compiled version into ../bin as | ||
# well as the swiftest_python script that is used to execute a Python input file. | ||
# The swiftest.sif file will be copied to the SIF_DIR directory. The default location is ${HOME}/.apptainer. | ||
# To change this, just set environment variable SIF_DIR prior to running this script. | ||
# | ||
# The script takes an optional argument "tag" if you want to pull a container other than "latest". | ||
# | ||
# In order to use one executable script, the SWIFTEST_SIF environment variable must be set to point to the location of swiftest.sif, | ||
# which requires this script to be called via source: | ||
# $ source ./install.sh | ||
# or | ||
# $ . ./install.sh | ||
TAG=${1:-latest} | ||
|
||
SIF_DIR=${SIF_DIR:-${HOME}/.apptainer} | ||
echo "Installing ${SIF_DIR}/swiftest.sif container from mintongroup/swiftest:${TAG} Docker container" | ||
apptainer pull --force ${SIF_DIR}/swiftest.sif docker://mintongroup/swiftest:${TAG} | ||
cp -rf bin/swiftest ../bin/ | ||
cp -rf bin/swiftest_driver ../bin/ | ||
export SWIFTEST_SIF=${SIF_DIR}/swiftest.sif |
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
!install.sh | ||
!bin | ||
!bin/swiftest | ||
!bin/swiftest_driver |
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,2 +1,4 @@ | ||
#!/bin/sh -- | ||
docker run -v $(pwd):$(pwd) -w $(pwd) --user "$(id -u):$(id -g)" -t -e OMP_NUM_THREADS -e FOR_COARRAY_NUM_IMAGES swiftest:1.0.0 "$@" | ||
OMP_NUM_THREADS=${OMP_NUM_THREADS:-`nproc --all`} | ||
FOR_COARRAY_NUM_IMAGES=${FOR_COARRAY_NUM_IMAGES:-1} | ||
docker run -v $(pwd):$(pwd) -w $(pwd) --user "$(id -u):$(id -g)" -ti -e OMP_NUM_THREADS -e FOR_COARRAY_NUM_IMAGES mintongroup/swiftest "$@" |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh -- | ||
OMP_NUM_THREADS=${OMP_NUM_THREADS:-`nproc --all`} | ||
FOR_COARRAY_NUM_IMAGES=${FOR_COARRAY_NUM_IMAGES:-1} | ||
docker run -v $(pwd):$(pwd) -w $(pwd) --user "$(id -u):$(id -g)" -ti --entrypoint /usr/local/bin/swiftest_driver -e OMP_NUM_THREADS -e FOR_COARRAY_NUM_IMAGES MintonGroup/swiftest "$@" |
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,5 +1,6 @@ | ||
#!/bin/sh -- | ||
tag=${1:-latest} | ||
echo "Installing swiftest:${tag} Docker container and executable script" | ||
docker pull daminton/swiftest:${tag} | ||
cp -rf bin/swiftest ../bin/ | ||
docker pull mintongroup/swiftest:${tag} | ||
cp -rf bin/swiftest ../bin/ | ||
cp -rf bin/swiftest_driver ../bin/ |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: swiftest-env | ||
|
||
channels: | ||
- conda-forge | ||
- defaults | ||
|
||
dependencies: | ||
- numpy | ||
- scipy | ||
- matplotlib | ||
- pandas | ||
- xarray | ||
- h5netcdf | ||
- netcdf4 | ||
- dask | ||
- bottleneck | ||
- astropy | ||
- astroquery | ||
- tqdm | ||
- x264 | ||
- ffmpeg | ||
- conda-build |
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,4 +1,4 @@ | ||
!bin/ | ||
!bin/swiftest_driver | ||
!bin/swiftest | ||
!install.sh | ||
!setenv.sh |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh -- | ||
OMP_NUM_THREADS=${OMP_NUM_THREADS:-`nproc --all`} | ||
FOR_COARRAY_NUM_IMAGES=${FOR_COARRAY_NUM_IMAGES:-1} | ||
singularity run --bind $(pwd):$(pwd) --cleanenv --env OMP_NUM_THREADS=${OMP_NUM_THREADS},FOR_COARRAY_NUM_IMAGES=${FOR_COARRAY_NUM_IMAGES} ${SWIFTEST_SIF} "$@" |
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,2 +1,4 @@ | ||
#!/bin/sh -- | ||
singularity run --bind $(pwd):$(pwd) --env OMP_NUM_THREADS=${OMP_NUM_THREADS},FOR_COARRAY_NUM_IMAGES=${FOR_COARRAY_NUM_IMAGES} ${SWIFTEST_SIF} "$@" | ||
OMP_NUM_THREADS=${OMP_NUM_THREADS:-`nproc --all`} | ||
FOR_COARRAY_NUM_IMAGES=${FOR_COARRAY_NUM_IMAGES:-1} | ||
singularity exec --bind $(pwd):$(pwd) --env OMP_NUM_THREADS=${OMP_NUM_THREADS},FOR_COARRAY_NUM_IMAGES=${FOR_COARRAY_NUM_IMAGES} ${SWIFTEST_SIF} swiftest_driver "$@" |
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,10 +1,21 @@ | ||
#!/bin/sh -- | ||
# This will install the Singularity container version of the swiftest_driver in place of the native compiled version into ../bin. | ||
# In order to use the executable script, the SWIFTEST_SIF environment variable must be set to point to the location of swiftest_driver.sif, which requires this script to be called via source: | ||
# $ . ./install.sh | ||
# This will install the Singularity version of the swiftest_driver in place of the native compiled version into ../bin as | ||
# well as the swiftest_python script that is used to execute a Python input file. | ||
# The swiftest.sif file will be copied to the SIF_DIR directory. The default location is ${HOME}/.singularity. | ||
# To change this, just set environment variable SIF_DIR prior to running this script. | ||
# | ||
# The script takes an optional argument "tag" if you want to pull a container other than "latest". | ||
# | ||
tag=${1:-latest} | ||
echo "Installing swiftest_driver.sif Singularity container and executable script from swiftest_driver:${tag} Docker container" | ||
singularity pull --force swiftest_driver.sif docker://daminton/swiftest_driver:${tag} | ||
# In order to use one executable script, the SWIFTEST_SIF environment variable must be set to point to the location of swiftest.sif, | ||
# which requires this script to be called via source: | ||
# $ source ./install.sh | ||
# or | ||
# $ . ./install.sh | ||
TAG=${1:-latest} | ||
|
||
SIF_DIR=${SIF_DIR:-${HOME}/.singularity} | ||
echo "Installing ${SIF_DIR}/swiftest.sif container from mintongroup/swiftest:${TAG} Docker container" | ||
singularity pull --force ${SIF_DIR}/swiftest.sif docker://mintongroup/swiftest:${TAG} | ||
cp -rf bin/swiftest ../bin/ | ||
cp -rf bin/swiftest_driver ../bin/ | ||
source ./setenv.sh | ||
export SWIFTEST_SIF=${SIF_DIR}/swiftest.sif |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.