From 0b25ea32af06bf74e8c66d368d85a882c306a7d0 Mon Sep 17 00:00:00 2001 From: Yousef Moazzam Date: Mon, 8 Sep 2025 15:33:11 +0100 Subject: [PATCH 1/2] Remove framework and pipeline tests CI on IRIS runners --- .../workflows/run_tests_framework_iris.yml | 52 ------------------- .../workflows/run_tests_pipelines_iris.yml | 52 ------------------- 2 files changed, 104 deletions(-) delete mode 100644 .github/workflows/run_tests_framework_iris.yml delete mode 100644 .github/workflows/run_tests_pipelines_iris.yml diff --git a/.github/workflows/run_tests_framework_iris.yml b/.github/workflows/run_tests_framework_iris.yml deleted file mode 100644 index 44ab5cd21..000000000 --- a/.github/workflows/run_tests_framework_iris.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: HTTomo framework tests - -on: - pull_request: - branches: - - main - push: - branches: - - main - -jobs: - iris-gpu: - runs-on: iris-gpu - container: - image: nvidia/cuda:12.6.3-devel-ubi8 - env: - NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }} - - defaults: - run: - shell: bash -l {0} - - steps: - - name: Checkout repository code - uses: actions/checkout@v4 - - - name: Create conda environment - uses: mamba-org/setup-micromamba@v1 - with: - environment-name: httomo - create-args: >- - cupy==12.3.0 - h5py=*=*mpi_openmpi* - mpi4py - tomopy==1.15 - post-cleanup: 'all' - init-shell: bash - - - name: Install httomo libraries and httomo - run: | - micromamba activate httomo - pip install .[dev-gpu] - micromamba list - - - name: Generate full yaml pipelines using pipeline directives - run: | - pip install "ruamel.yaml>0.18.0" - python ./docs/source/scripts/execute_pipelines_build.py -o ./docs/source/pipelines_full/ - - - name: Run HTTomo framework tests - run: | - pytest tests/ diff --git a/.github/workflows/run_tests_pipelines_iris.yml b/.github/workflows/run_tests_pipelines_iris.yml deleted file mode 100644 index 871ff2571..000000000 --- a/.github/workflows/run_tests_pipelines_iris.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: HTTomo pipelines tests - -on: - pull_request: - branches: - - main - push: - branches: - - main - -jobs: - iris-gpu: - runs-on: iris-gpu - container: - image: nvidia/cuda:12.6.3-devel-ubi8 - env: - NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }} - - defaults: - run: - shell: bash -l {0} - - steps: - - name: Checkout repository code - uses: actions/checkout@v4 - - - name: Create conda environment - uses: mamba-org/setup-micromamba@v1 - with: - environment-name: httomo - create-args: >- - cupy==12.3.0 - h5py=*=*mpi_openmpi* - mpi4py - tomopy==1.15 - post-cleanup: 'all' - init-shell: bash - - - name: Install httomo libraries, httomo-backends and httomo - run: | - micromamba activate httomo - pip install .[dev-gpu] - micromamba list - - - name: Generate full yaml pipelines using pipeline directives - run: | - pip install "ruamel.yaml>0.18.0" - python ./docs/source/scripts/execute_pipelines_build.py -o ./docs/source/pipelines_full/ - - - name: Run HTTomo pipelines tests (small data) - run: | - pytest tests/test_pipeline_small.py --small_data From 532518be2dde3265b04a03ee2f06880d08ed9dc6 Mon Sep 17 00:00:00 2001 From: Yousef Moazzam Date: Mon, 8 Sep 2025 15:34:47 +0100 Subject: [PATCH 2/2] Add workflow file to run simple cupy script with IRIS GPU runner --- .github/workflows/simple_cupy.yml | 34 +++++++++++++++++++++++++++++++ simple-cupy-script.py | 6 ++++++ 2 files changed, 40 insertions(+) create mode 100644 .github/workflows/simple_cupy.yml create mode 100644 simple-cupy-script.py diff --git a/.github/workflows/simple_cupy.yml b/.github/workflows/simple_cupy.yml new file mode 100644 index 000000000..2b1db7343 --- /dev/null +++ b/.github/workflows/simple_cupy.yml @@ -0,0 +1,34 @@ +name: Simple cupy script on IRIS + +on: + pull_request: + branches: + - main + +jobs: + iris-gpu: + runs-on: iris-gpu + container: + image: nvidia/cuda:12.6.3-devel-ubi8 + env: + NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }} + + defaults: + run: + shell: bash -l {0} + + steps: + - name: Checkout repository code + uses: actions/checkout@v4 + + - name: Create conda environment + uses: mamba-org/setup-micromamba@v1 + with: + environment-name: simple-cupy + create-args: >- + cupy==12.3.0 + post-cleanup: 'all' + init-shell: bash + + - name: Run simple cupy script + run: python simple-cupy-script.py diff --git a/simple-cupy-script.py b/simple-cupy-script.py new file mode 100644 index 000000000..7af046ea7 --- /dev/null +++ b/simple-cupy-script.py @@ -0,0 +1,6 @@ +import cupy as cp + +arr = cp.array([1, 2, 3]) +print(f"arr before: {arr}") +arr += 1 +print(f"arr after: {arr}")