-
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.
Merge pull request #4 from barbagroup/rescience-rev
ReScience revision
- Loading branch information
Showing
31 changed files
with
404 additions
and
31 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# docker version on phantom | ||
Client: Docker Engine - Community | ||
Version: 19.03.10 | ||
API version: 1.39 | ||
Go version: go1.13.10 | ||
Git commit: 9424aeaee9 | ||
Built: Thu May 28 22:17:05 2020 | ||
OS/Arch: linux/amd64 | ||
Experimental: false | ||
|
||
Server: Docker Engine - Community | ||
Engine: | ||
Version: 18.09.7 | ||
API version: 1.39 (minimum version 1.12) | ||
Go version: go1.10.8 | ||
Git commit: 2d0083d | ||
Built: Thu Jun 27 17:23:02 2019 | ||
OS/Arch: linux/amd64 | ||
Experimental: false |
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,63 @@ | ||
# Repro-Packs on AWS | ||
|
||
1. Sign-in to your AWS account | ||
2. Go to EC2, switch to your preferred Region, and click "Launch instance" | ||
3. Choose one of the Ubuntu AMIs (e.g., "Ubuntu Server 20.04 LTS (HVM), SSD Volume Type") | ||
4. Choose the `t3.2xlarge` instance type (or a similar one with 32 GB of memory) | ||
5. Use a Bootstrap script to install and start Docker on the instance: | ||
|
||
```bash | ||
#!/bin/bash | ||
sudo snap install docker | ||
sudo addgroup --system docker | ||
sudo adduser ubuntu docker | ||
newgrp docker | ||
sudo snap disable docker | ||
sudo snap enable docker | ||
``` | ||
|
||
6. Request 60 GB for the Root volume (gp2 volume type is fine) | ||
7. Use a Security Group with SSH to your IP address | ||
8. Review, set your Permission Key-Pair, and Launch | ||
9. Once the instance is provisioned, connect to it | ||
|
||
```shell | ||
ssh -i <pem-path> ubuntu@<public-ipv4-dns-or-address> | ||
``` | ||
|
||
10. Install `unzip` | ||
|
||
```shell | ||
sudo apt install unzip | ||
``` | ||
|
||
11. Download the repro-packs from Zenodo and unzip the archive | ||
|
||
```shell | ||
ARCHIVE=petibm-rollingpitching_repro-packs.zip | ||
curl --output $ARCHIVE https://zenodo.org/record/4732946/files/$ARCHIVE | ||
unzip $ARCHIVE | ||
rm -f $ARCHIVE | ||
``` | ||
|
||
12. Download the container images from Zenodo and unzip the archive | ||
|
||
```shell | ||
ARCHIVE=petibm-rollingpitching-images.zip | ||
curl --output $ARCHIVE https://zenodo.org/record/5090342/files/$ARCHIVE | ||
unzip $ARCHIVE | ||
rm -f $ARCHIVE | ||
``` | ||
|
||
13. Load the Docker image for post-processing the data | ||
|
||
```shell | ||
docker load -i petibm-rollingpitching-images/petibm-rollingpitching_prepost.tar | ||
``` | ||
|
||
14. Run a Docker container to generate the secondary data and figures | ||
|
||
```shell | ||
cd repro-packs | ||
docker run --rm -it -v $(pwd):/postprocessing mesnardo/petibm-rollingpitching:prepost /bin/bash /postprocessing/scripts/generate_all_figures.sh > repro-packs.log 2>&1 | ||
``` |
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,109 @@ | ||
# Running simulations on AWS | ||
|
||
1. Sign-in to your AWS account | ||
2. Go to EC2, switch to your preferred Region, and click "Launch instance" | ||
3. Choose one the Ubuntu 18.04 AMI | ||
4. Choose the `p2.8xlarge` instance type (8 NVIDIA K80 GPUs, 32 vCPUs, 488 GiB Mem, 96 GiB GPU Mem). (`p2.xlarge` does not have enough memory for the base case simulation.) | ||
5. Use a Bootstrap script to install and start Docker on the instance: | ||
|
||
```bash | ||
#!/bin/bash | ||
sudo snap install docker | ||
sudo addgroup --system docker | ||
sudo adduser ubuntu docker | ||
newgrp docker | ||
sudo snap disable docker | ||
sudo snap enable docker | ||
``` | ||
|
||
6. Request 100 GB for the Root volume (gp2 volume type is fine) | ||
7. Use a Security Group with SSH to your IP address | ||
8. Review, set your Permission Key-Pair, and Launch | ||
9. Once the instance is provisioned, connect to it | ||
|
||
```shell | ||
ssh -i <pem-path> ubuntu@<public-ipv4-dns-or-address> | ||
``` | ||
|
||
10. On the EC2 instance, install dependencies for Singularity | ||
|
||
```shell | ||
sudo apt update | ||
sudo apt install -y build-essential libssl-dev uuid-dev libgpgme11-dev libseccomp-dev wget pkg-config git | ||
``` | ||
|
||
11. Install CUDA Toolkit 10.1 | ||
|
||
```shell | ||
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin | ||
sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600 | ||
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub | ||
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /" | ||
sudo apt update | ||
sudo apt -y install cuda-10-1 | ||
``` | ||
|
||
12. Install GO (required for Singularity) | ||
|
||
```shell | ||
export VERSION=1.14.12 OS=linux ARCH=amd64 | ||
wget https://dl.google.com/go/go$VERSION.$OS-$ARCH.tar.gz | ||
sudo tar -C /usr/local -xzvf go$VERSION.$OS-$ARCH.tar.gz | ||
rm -f go$VERSION.$OS-$ARCH.tar.gz | ||
export PATH=/usr/local/go/bin:$PATH | ||
``` | ||
|
||
13. Install Singularity | ||
|
||
```shell | ||
export VERSION=3.8.0 | ||
wget https://github.com/hpcng/singularity/releases/download/v${VERSION}/singularity-${VERSION}.tar.gz | ||
tar -xzf singularity-${VERSION}.tar.gz | ||
rm -f singularity-${VERSION}.tar.gz | ||
cd singularity-${VERSION} | ||
./mconfig -V ${VERSION} | ||
make -C builddir | ||
sudo make -C builddir install | ||
``` | ||
|
||
14. Install nvidia-container-cli | ||
|
||
```shell | ||
DIST=$(. /etc/os-release; echo $ID$VERSION_ID) | ||
curl -s -L https://nvidia.github.io/libnvidia-container/gpgkey | sudo apt-key add - | ||
curl -s -L https://nvidia.github.io/libnvidia-container/${DIST}/libnvidia-container.list | sudo tee /etc/apt/sources.list.d/libnvidia-container.list | ||
sudo apt update | ||
sudo apt install libnvidia-container-tools | ||
``` | ||
|
||
15. Download the Zenodo archive with container images | ||
|
||
```shell | ||
ARCHIVE=petibm-rollingpitching-images.zip | ||
curl --output $ARCHIVE https://zenodo.org/record/5090342/files/$ARCHIVE | ||
unzip $ARCHIVE | ||
rm -f $ARCHIVE | ||
``` | ||
|
||
16. Load the pre-processing Docker image | ||
|
||
```shell | ||
docker load -i petibm-rollingpitching-images/petibm-rollingpitching_prepost.tar | ||
``` | ||
|
||
17. Download the Zenodo archive with the application input data | ||
|
||
```shell | ||
ARCHIVE=petibm-rollingpitching-2021.05.02.zip | ||
curl --output $ARCHIVE https://zenodo.org/record/4733323/files/$ARCHIVE | ||
unzip $ARCHIVE | ||
rm -f $ARCHIVE | ||
``` | ||
|
||
18. Run the base case simulation | ||
|
||
```shell | ||
cd petibm-rollingpitching-2021.05.02/runs/Re200_St0.6_AR1.27_psi90 | ||
docker run --rm -v $(pwd):/volume mesnardo/petibm-rollingpitching:prepost python /volume/scripts/create_body.py | ||
SINGULARITY_CUDA_VISIBLE_DEVICES=0,1,2,3 singularity exec --nv ~/petibm-rollingpitching-images/petibm-rollingpitching_petibm0.5.1-xenial.sif mpirun --use-hwthread-cpus petibm-rollingpitching -probes probes.yaml -options_left -log_view ascii:view.log | ||
``` |
Submodule rescience-rollingpitching
updated
8 files
+1 −1 | README.md | |
+3 −0 | article.tex | |
+42 −0 | bibliography.bib | |
+38 −8 | content.tex | |
+3 −0 | figures/Re200_St0.6_AR1.27_psi90/meshgrid.png | |
+1 −1 | metadata.tex | |
+1 −1 | metadata.yaml | |
+1 −1 | rescience.cls |
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
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
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.