Skip to content

Commit

Permalink
[CI] Use Moonshot at ANL (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison authored Jan 21, 2025
1 parent 52d60d3 commit 2cbd1a9
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 15 deletions.
63 changes: 48 additions & 15 deletions .github/meson/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ runs:
echo "OMP_PROC_BIND=TRUE" >> $GITHUB_ENV
- name: Install compilers
if: inputs.os != 'self-hosted'
uses: fortran-lang/setup-fortran@main
with:
compiler: ${{ inputs.compiler }}
Expand Down Expand Up @@ -126,26 +127,55 @@ runs:
meson compile -C builddir
meson install -C builddir
- name: Install dummy libHSL
- name: Install libHSL
if: inputs.os != 'windows-latest'
shell: bash
run: |
VERSION_LIBHSL="4.0.2"
cd ..
if [[ "${{ inputs.os }}" == "windows-latest" ]]; then
wget https://github.com/ralna/libHSL/archive/refs/tags/v${VERSION_LIBHSL}.zip
unzip v${VERSION_LIBHSL}.zip
# self-hosted runner
if [[ "$HOSTNAME" == "moonshot" ]]; then
cp /scratch/github-actions/actions_runner_galahad/lib/* $DEPS/deps/$LIBDIR
if [[ "${{ inputs.int }}" == "64" ]]; then
INT64="true"
BLAS="openblas64_"
LAPACK="openblas64_"
else
INT64="false"
BLAS="openblas"
LAPACK="openblas"
fi
BLAS_PATH="$DEPS/deps/$LIBDIR"
LAPACK_PATH="$DEPS/deps/$LIBDIR"
cd /scratch/github-actions/actions_runner_galahad/hsl_subset
rm -rf builddir
meson setup builddir --buildtype=debug \
--prefix=$DEPS/deps \
-Dlibblas=${BLAS} \
-Dliblapack=${LAPACK} \
-Dlibblas_path=${BLAS_PATH} \
-Dliblapack_path=${LAPACK_PATH} \
-Dquadruple=true \
-Ddefault_library=shared \
-Dint64=${INT64}
meson compile -C builddir
meson install -C builddir
else
wget https://github.com/ralna/libHSL/archive/refs/tags/v${VERSION_LIBHSL}.tar.gz
tar -xzvf v${VERSION_LIBHSL}.tar.gz
VERSION_LIBHSL="4.0.2"
cd ..
if [[ "${{ inputs.os }}" == "windows-latest" ]]; then
wget https://github.com/ralna/libHSL/archive/refs/tags/v${VERSION_LIBHSL}.zip
unzip v${VERSION_LIBHSL}.zip
else
wget https://github.com/ralna/libHSL/archive/refs/tags/v${VERSION_LIBHSL}.tar.gz
tar -xzvf v${VERSION_LIBHSL}.tar.gz
fi
cd libHSL-${VERSION_LIBHSL}/hsl_subset
meson setup builddir --buildtype=debug \
--prefix=$DEPS/deps \
-Dquadruple=true \
-Ddefault_library=shared
meson compile -C builddir
meson install -C builddir
fi
cd libHSL-${VERSION_LIBHSL}/hsl_subset
meson setup builddir --buildtype=debug \
--prefix=$DEPS/deps \
-Dquadruple=true \
-Ddefault_library=shared
meson compile -C builddir
meson install -C builddir
- name: Install MUMPS
if: inputs.os == 'ubuntu-latest' && inputs.compiler == 'gcc'
Expand Down Expand Up @@ -213,6 +243,9 @@ runs:
BLAS_PATH="/opt/nvidia/hpc_sdk/Linux_x86_64/23.11/compilers/lib"
LAPACK_PATH="/opt/nvidia/hpc_sdk/Linux_x86_64/23.11/compilers/lib"
fi
if [[ "${{ inputs.os }}" == "self-hosted" ]]; then
PYTHON_INTERFACE="false"
fi
if [[ "${{ inputs.int }}" == "64" ]]; then
INT64="true"
PYTHON_INTERFACE="false"
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/moonshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Moonshot
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]

jobs:
test-moonshot-hsl:
env:
CUDA_VISIBLE_DEVICES: 1
JULIA_DEPOT_PATH: /scratch/github-actions/julia_depot_galahad
runs-on: self-hosted
strategy:
fail-fast: false
matrix:
os: ['self-hosted']
arch: ['x64']
compiler: ['gcc']
version: ['13']
int: ['32', '64']
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run common setup
uses: ./.github/meson
with:
os: ${{ matrix.os }}
compiler: ${{ matrix.compiler }}
version: ${{ matrix.version }}
int: ${{ matrix.int }}

0 comments on commit 2cbd1a9

Please sign in to comment.