-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Multiple bug fixes in parCon and parRSB * Added CI tests for parCon and parRSB * Refactor examples * Added I/O routines for `.re2`, `.co2` and `.ma2` files
- Loading branch information
Showing
67 changed files
with
2,578 additions
and
3,298 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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: parRSB CI Tests | ||
on: [push, pull_request] | ||
env: | ||
GITHUB.TOKEN: ${{ secrets.token }} | ||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
test: [box_2x2x2, pyramid, tgv, e3q, solid, ethier, vortex, expansion] | ||
np: [1, 2, 3, 4] | ||
fail-fast: false | ||
name: "${{ matrix.test }}" | ||
env: | ||
GSVER: 1.0.7 | ||
CC: mpicc | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install apt dependencies | ||
shell: bash | ||
run: | | ||
sudo apt -y update | ||
sudo apt install -y mpich libmpich-dev python3-pytest | ||
sudo apt install -y libblas-dev liblapack-dev | ||
- name: Build gslib | ||
shell: bash | ||
run: | | ||
wget --no-check-certificate -O v$GSVER.tar.gz http://github.com/gslib/gslib/archive/v$GSVER.tar.gz | ||
mkdir gslib | ||
tar -zxvf v$GSVER.tar.gz -C ./gslib --strip-components=1 | ||
cd gslib | ||
make -j4 | ||
- name: Build parRSB | ||
shell: bash | ||
run: | | ||
export GSLIBPATH=`pwd`/gslib/build/ | ||
make -j1 | ||
- name: Clone tests | ||
shell: bash | ||
run: | | ||
git clone https://github.com/thilinarmtb/parRSB-tests.git | ||
- name: gencon | ||
shell: bash | ||
run: | | ||
export EXAMPLEDIR=`pwd`/build/examples | ||
cd parRSB-tests/${{ matrix.test }} | ||
tol=(`cat test.txt | grep tol`); tol=${tol[2]} | ||
echo "localhost:4" > hostfile | ||
mpirun -np ${{ matrix.np }} --hostfile hostfile ${EXAMPLEDIR}/gencon --mesh ${{ matrix.test }} --tol=${tol} --no-dump --test | ||
- name: genmap | ||
shell: bash | ||
run: | | ||
export EXAMPLEDIR=`pwd`/build/examples | ||
export PARRSB_RSB_PRE=0 | ||
export PARRSB_RSB_ALGO=0 | ||
cd parRSB-tests/${{ matrix.test }} | ||
tol=(`cat test.txt | grep tol`); tol=${tol[2]} | ||
echo "localhost:4" > hostfile | ||
mpirun -np ${{ matrix.np }} --hostfile hostfile ${EXAMPLEDIR}/genmap --mesh ${{ matrix.test }} --tol=${tol} --no-dump --test |
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
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.