Skip to content

Add field array support to expand comm pattern #240

Add field array support to expand comm pattern

Add field array support to expand comm pattern #240

Workflow file for this run

name: CI
on:
push:
branches:
- master
tags: ['*']
pull_request:
# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
test-default:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
version:
- '^1.10.0-0'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
arch: ${{ matrix.arch }}
version: ${{ matrix.version }}
- uses: julia-actions/cache@v2
with:
cache-compiled: "true"
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
test-system-apt:
timeout-minutes: 60
runs-on: ubuntu-20.04
strategy:
matrix:
mpi:
- libmpich-dev
- libopenmpi-dev
julia_version:
- "1.10"
fail-fast: false
env:
P4ESTTYPES_TEST: P4ESTTYPES_CUSTOM_MPI_CUSTOM
P4ESTTYPES_TEST_BINARY: system
OMPI_MCA_btl_base_warn_component_unused: 0
OMPI_ALLOW_RUN_AS_ROOT: 1
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
OMPI_MCA_rmaps_base_oversubscribe: true
PRTE_MCA_rmaps_default_mapping_policy: :oversubscribe
steps:
- uses: actions/checkout@v4
- name: Install MPI via apt
run: |
sudo apt-get update
sudo apt-get install -y $MPI
env:
MPI: ${{ matrix.mpi }}
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia_version }}
- uses: julia-actions/cache@v2
- name: Build P4est
run: |
P4EST_RELEASE="2.8.5"
P4EST_PREFIX=$(pwd)/p4est
echo "Building P4est ${P4EST_RELEASE} in ${P4EST_PREFIX}."
wget https://p4est.github.io/release/p4est-${P4EST_RELEASE}.tar.gz
tar xf p4est-${P4EST_RELEASE}.tar.gz
pushd p4est-${P4EST_RELEASE}
./configure CC=mpicc --prefix="$P4EST_PREFIX" --enable-mpi
make -j 2
make install
popd
echo "P4ESTTYPES_TEST_LIBP4EST=$P4EST_PREFIX/lib/libp4est.so" | tee -a $GITHUB_ENV
echo "P4ESTTYPES_TEST_LIBSC=$P4EST_PREFIX/lib/libsc.so" | tee -a $GITHUB_ENV
ls -l "$P4EST_PREFIX/lib/libp4est.so"
ls -l "$P4EST_PREFIX/lib/libsc.so"
echo "Done"
- name: Configure MPI.jl
shell: julia --color=yes --project=. {0}
run: |
include(joinpath(pwd(), "test", "configure_packages.jl"))
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1