-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run devsamp examples with 2 ranks each
- Loading branch information
Showing
1 changed file
with
8 additions
and
5 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 |
---|---|---|
|
@@ -45,7 +45,9 @@ jobs: | |
|
||
- name: Install prerequisite MacOS packages | ||
if: ${{ matrix.os == 'macos-latest' }} | ||
run: brew install ninja boost eigen open-mpi bison ccache | ||
run: | | ||
brew install ninja boost eigen open-mpi bison ccache | ||
echo "MPIEXEC=/opt/homebrew/bin/mpiexec" >> $GITHUB_ENV | ||
- name: Install prerequisites Ubuntu packages | ||
if: ${{ matrix.os == 'ubuntu-22.04' }} | ||
|
@@ -54,6 +56,7 @@ jobs: | |
sudo apt-add-repository "deb https://apt.kitware.com/ubuntu/ $(lsb_release -cs) main" | ||
sudo apt-get update | ||
sudo apt-get -y install ninja-build g++-12 liblapack-dev libboost-dev libboost-serialization-dev libboost-random-dev libeigen3-dev openmpi-bin libopenmpi-dev libtbb-dev ccache flex bison cmake doxygen | ||
echo "MPIEXEC=/usr/bin/mpiexec" >> $GITHUB_ENV | ||
- name: Create Build Environment | ||
# Some projects don't allow in-source building, so create a separate build directory | ||
|
@@ -66,7 +69,7 @@ jobs: | |
shell: cmake -P {0} | ||
run: | | ||
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) | ||
message("::set-output name=timestamp::${current_date}") | ||
echo "name=timestamp::${current_date}" >> $GITHUB_OUTPUT | ||
- name: Setup ccache cache files | ||
uses: actions/[email protected] | ||
|
@@ -112,11 +115,11 @@ jobs: | |
run: | | ||
cmake -S $GITHUB_WORKSPACE/doc/dox/dev/devsamp/helloworld -B test_install_devsamp_helloworld -DCMAKE_PREFIX_PATH=${{github.workspace}}/install || (cat test_install_devsamp_helloworld/CMakeFiles/CMakeOutput.log && cat test_install_devsamp_helloworld/CMakeFiles/CMakeError.log) | ||
cmake --build test_install_devsamp_helloworld | ||
test_install_devsamp_helloworld/helloworld-parsec | ||
test_install_devsamp_helloworld/helloworld-mad | ||
$MPIEXEC -n 2 test_install_devsamp_helloworld/helloworld-parsec | ||
$MPIEXEC -n 2 test_install_devsamp_helloworld/helloworld-mad | ||
cmake -S $GITHUB_WORKSPACE/doc/dox/dev/devsamp/fibonacci -B test_install_devsamp_fibonacci -DCMAKE_PREFIX_PATH=${{github.workspace}}/install || (cat test_install_devsamp_fibonacci/CMakeFiles/CMakeOutput.log && cat test_install_devsamp_fibonacci/CMakeFiles/CMakeError.log) | ||
cmake --build test_install_devsamp_fibonacci | ||
test_install_devsamp_fibonacci/fibonacci-parsec | ||
$MPIEXEC -n 2 test_install_devsamp_fibonacci/fibonacci-parsec | ||
cmake -E make_directory test_install_userexamples | ||
cat > test_install_userexamples/CMakeLists.txt <<EOF | ||
cmake_minimum_required(VERSION 3.14) | ||
|