-
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 develop into master
- Loading branch information
Showing
63 changed files
with
3,980 additions
and
886 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,72 @@ | ||
name: Build-doc | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
||
name: Doxygen build | ||
runs-on: [ubuntu-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: install-doxygen | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y install mpich texlive texlive-generic-recommended texlive-latex-extra doxygen graphviz ghostscript | ||
- name: info | ||
run: | | ||
doxygen -v | ||
cmake --version | ||
- name: install-ginkgo | ||
run: | | ||
pushd . | ||
cd ${HOME} | ||
mkdir install | ||
git clone https://github.com/ginkgo-project/ginkgo.git | ||
cd ginkgo | ||
git checkout expt-develop | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_INSTALL_PREFIX=${HOME}/install -DGINKGO_BUILD_BENCHMARKS=off -DGINKGO_BUILD_EXAMPLES=off -DGINKGO_BUILD_TESTS=off -DGINKGO_BUILD_OMP=off -DGINKGO_BUILD_REFERENCE=off -DGINKGO_BUILD_CUDA=off .. | ||
make -j10 | ||
make install | ||
export Ginkgo_DIR=${HOME}/install | ||
echo $Ginkgo_DIR | ||
popd | ||
- name: build-doc | ||
run: | | ||
mkdir -p build-doc && pushd build-doc | ||
export CURRENT_BRANCH="$(git rev-parse --abbrev-ref HEAD)" | ||
cmake -DCMAKE_PREFIX_PATH=${HOME}/install -DSCHWARZ_BUILD_CHOLMOD=off -DSCHWARZ_BUILD_METIS=off -DSCHWARZ_WITH_HWLOC=off -DSCHWARZ_BUILD_CUDA=off -DSCHWARZ_BUILD_BENCHMARKING=off -DSCHWARZ_DEVEL_TOOLS=off -DSCHWARZ_BUILD_DOC=on -DSCHWARZ_DOC_GENERATE_PDF=on .. | ||
make usr | ||
make pdf | ||
popd | ||
# publish it | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Action" | ||
mkdir action-docs && cd action-docs | ||
git init | ||
git remote add github "https://$GITHUB_ACTOR:[email protected]/$GITHUB_REPOSITORY.git" | ||
git pull github gh-pages --ff-only | ||
git checkout gh-pages | ||
rm -rf doc/${CURRENT_BRANCH} | ||
mkdir -p doc | ||
mkdir -p doc/pdf | ||
cp -r ../build-doc/doc/usr doc/${CURRENT_BRANCH} | ||
cp ../build-doc/doc/pdf.pdf doc/pdf/${CURRENT_BRANCH}.pdf | ||
export CURRENT_SHA="$(git rev-parse --short HEAD)" | ||
echo $CURRENT_SHA | ||
git add -A | ||
git commit -m "Update documentation from ${CURRENT_SHA}" | ||
git status | ||
git branch --set-upstream-to=github/gh-pages gh-pages | ||
- uses: pratikvn/github-push-action@master | ||
with: | ||
directory: action-docs | ||
branch: gh-pages | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/[email protected] | ||
with: | ||
name: pdf-doc | ||
path: build-doc/doc/pdf.pdf |
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,104 @@ | ||
name: Build-status | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
||
name: No CUDA build | ||
runs-on: [ubuntu-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: install-mpi | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y install mpich | ||
- name: info | ||
run: | | ||
g++ -v | ||
export MPI_DIR=$(which mpicxx) | ||
echo $MPI_DIR | ||
mpiexec --version | ||
cmake --version | ||
- name: install-ginkgo | ||
run: | | ||
pushd . | ||
cd ${HOME} | ||
mkdir install | ||
git clone https://github.com/ginkgo-project/ginkgo.git | ||
cd ginkgo | ||
git checkout expt-develop | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_INSTALL_PREFIX=${HOME}/install -DGINKGO_BUILD_BENCHMARKS=off -DGINKGO_BUILD_EXAMPLES=off -DGINKGO_BUILD_TESTS=off .. | ||
make -j10 | ||
make install | ||
export Ginkgo_DIR=${HOME}/install | ||
echo $Ginkgo_DIR | ||
popd | ||
- name: configure-run-schwarz-lib | ||
run: | | ||
mkdir build | ||
cd build/ | ||
cmake -DCMAKE_PREFIX_PATH=${HOME}/install -DSCHWARZ_BUILD_CHOLMOD=off -DSCHWARZ_BUILD_METIS=off -DSCHWARZ_WITH_HWLOC=off -DSCHWARZ_BUILD_CUDA=off .. | ||
make -j10 | ||
cuda-build: | ||
|
||
name: Build with CUDA | ||
runs-on: [ubuntu-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: install-mpi | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y install mpich | ||
- name: install-cuda | ||
run: | | ||
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 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /" | ||
sudo apt-get update | ||
sudo apt-get -y install cuda | ||
- name: info | ||
run: | | ||
g++ -v | ||
/usr/local/cuda-10.2/bin/nvcc --version | ||
mpiexec --version | ||
cmake --version | ||
MPI_DIR=$(which mpicxx) | ||
echo $MPI_DIR | ||
- name: install-metis | ||
run: | | ||
sudo apt-get -y install metis | ||
- name: install-ginkgo | ||
run: | | ||
export PATH=/usr/local/cuda-10.2/bin:/usr/local/cuda-10.2/NsightCompute-2019.1${PATH:+:${PATH}} | ||
export LD_LIBRARY_PATH=/usr/local/cuda-10.2/lib64\ | ||
${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | ||
pushd . | ||
cd ${HOME} | ||
mkdir install | ||
git clone https://github.com/ginkgo-project/ginkgo.git | ||
cd ginkgo | ||
git checkout expt-develop | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_PREFIX_PATH=/usr/local/cuda-10.2 -DCMAKE_INSTALL_PREFIX=${HOME}/install -DGINKGO_BUILD_BENCHMARKS=off -DGINKGO_BUILD_EXAMPLES=off -DGINKGO_BUILD_TESTS=off -DGINKGO_BUILD_CUDA=on .. | ||
make -j10 | ||
make install | ||
popd | ||
- name: configure-run-schwarz-lib | ||
run: | | ||
export Ginkgo_DIR=${HOME}/install | ||
echo $Ginkgo_DIR | ||
export PATH=/usr/local/cuda-10.2/bin:/usr/local/cuda-10.2/NsightCompute-2019.1${PATH:+:${PATH}} | ||
export LD_LIBRARY_PATH=/usr/local/cuda-10.2/lib64\ | ||
${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | ||
mkdir build | ||
cd build/ | ||
cmake -DCMAKE_PREFIX_PATH="${HOME}/install;/usr/local/cuda-10.2" -DSCHWARZ_BUILD_CHOLMOD=off -DSCHWARZ_BUILD_METIS=off -DSCHWARZ_WITH_HWLOC=off -DSCHWARZ_BUILD_CUDA=on .. | ||
make -j10 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Testing Instructions {#testing_schwarz} | ||
------------------------------------- |
Oops, something went wrong.