Update CI (#19)
This commit is contained in:
15
.github/workflows/linting.yml
vendored
Normal file
15
.github/workflows/linting.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
name: linting
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
jobs:
|
||||||
|
format:
|
||||||
|
name: Linting
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: '3.12'
|
||||||
|
- run: sudo apt-get update
|
||||||
|
- run: sudo apt-get install -y clang-format-14 cmake-format pre-commit
|
||||||
|
- run: pre-commit run -a
|
||||||
21
.github/workflows/test.yml
vendored
21
.github/workflows/test.yml
vendored
@@ -6,16 +6,16 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: [slurm]
|
runs-on: [slurm]
|
||||||
strategy:
|
strategy:
|
||||||
matrix: &gpu-matrix
|
matrix: &matrix
|
||||||
include:
|
include:
|
||||||
- name: NVIDIA A4000
|
- name: GNU, NVIDIA A4000
|
||||||
partition: defq
|
partition: defq
|
||||||
gres: gpu:A4000
|
gres: gpu:A4000
|
||||||
cmake_flags: "-DTRIGDX_USE_MKL=1 -DTRIGDX_USE_GPU=1 -DTRIGDX_USE_XSIMD=1 -DCMAKE_CUDA_ARCHITECTURES=86"
|
cmake_flags: "-DTRIGDX_USE_MKL=1 -DTRIGDX_USE_GPU=1 -DTRIGDX_USE_MKL=1 -DTRIGDX_USE_XSIMD=1 -DCMAKE_CUDA_ARCHITECTURES=86"
|
||||||
env:
|
environment_modules: "spack/20250403 intel-oneapi-mkl cuda python"
|
||||||
DEVICE_NAME: ${{ matrix.name }}
|
|
||||||
PARTITION_NAME: ${{ matrix.partition }}
|
PARTITION_NAME: ${{ matrix.partition }}
|
||||||
CMAKE_FLAGS: ${{ matrix.cmake_flags }}
|
CMAKE_FLAGS: ${{ matrix.cmake_flags }}
|
||||||
|
ENVIRONMENT_MODULES: ${{ matrix.environment_modules }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: astron-rd/slurm-action@v1
|
- uses: astron-rd/slurm-action@v1
|
||||||
@@ -23,12 +23,7 @@ jobs:
|
|||||||
partition: ${{ matrix.partition }}
|
partition: ${{ matrix.partition }}
|
||||||
gres: ${{ matrix.gres }}
|
gres: ${{ matrix.gres }}
|
||||||
commands: |
|
commands: |
|
||||||
if [[ "$PARTITION_NAME" == defq ]]; then
|
module load ${ENVIRONMENT_MODULES}
|
||||||
source /etc/profile.d/modules.sh
|
|
||||||
module load spack/20250403
|
|
||||||
module load cuda intel-oneapi-mkl
|
|
||||||
source /etc/profile
|
|
||||||
fi
|
|
||||||
cmake -S . -B build ${CMAKE_FLAGS}
|
cmake -S . -B build ${CMAKE_FLAGS}
|
||||||
make -C build -j
|
make -C build -j
|
||||||
- name: Upload build
|
- name: Upload build
|
||||||
@@ -41,7 +36,7 @@ jobs:
|
|||||||
runs-on: [slurm]
|
runs-on: [slurm]
|
||||||
needs: build
|
needs: build
|
||||||
strategy:
|
strategy:
|
||||||
matrix: *gpu-matrix
|
matrix: *matrix
|
||||||
env:
|
env:
|
||||||
DEVICE_NAME: ${{ matrix.name }}
|
DEVICE_NAME: ${{ matrix.name }}
|
||||||
PARTITION_NAME: ${{ matrix.partition }}
|
PARTITION_NAME: ${{ matrix.partition }}
|
||||||
@@ -60,7 +55,7 @@ jobs:
|
|||||||
runs-on: [slurm]
|
runs-on: [slurm]
|
||||||
needs: build
|
needs: build
|
||||||
strategy:
|
strategy:
|
||||||
matrix: *gpu-matrix
|
matrix: *matrix
|
||||||
env:
|
env:
|
||||||
DEVICE_NAME: ${{ matrix.name }}
|
DEVICE_NAME: ${{ matrix.name }}
|
||||||
PARTITION_NAME: ${{ matrix.partition }}
|
PARTITION_NAME: ${{ matrix.partition }}
|
||||||
|
|||||||
Reference in New Issue
Block a user