Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring back CI on OpenCL and HIP. #2108

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/is-slurm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ runs:
shell: bash
run: |
printf '#!/bin/bash
if ! srun --version &> /dev/null; then
if ! srun --version &> /dev/null || [ $(hostname) = hendrixfut02fl.unicph.domain ]; then
echo "is-slurm=false"
else
echo "is-slurm=true"
Expand Down
56 changes: 28 additions & 28 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,37 +33,37 @@ jobs:
name: futhark-nightly-linux-x86_64.tar.xz
path: result/futhark-nightly-linux-x86_64.tar.xz

# benchmark-MI100-opencl:
# runs-on: MI100
# needs: [build-linux-nix]
benchmark-MI100-opencl:
runs-on: MI100
needs: [build-linux-nix]

# env:
# TMPDIR: "/scratch"
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: recursive
# fetch-depth: 0
# - uses: ./.github/actions/benchmark
# with:
# backend: opencl
# system: MI100
env:
TMPDIR: "/scratch"
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- uses: ./.github/actions/benchmark
with:
backend: opencl
system: MI100

# benchmark-MI100-hip:
# runs-on: MI100
# needs: [build-linux-nix]
benchmark-MI100-hip:
runs-on: MI100
needs: [build-linux-nix]

# env:
# TMPDIR: "/scratch"
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: recursive
# fetch-depth: 0
# - uses: ./.github/actions/benchmark
# with:
# backend: hip
# system: MI100
env:
TMPDIR: "/scratch"
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- uses: ./.github/actions/benchmark
with:
backend: hip
system: MI100

benchmark-A100:
runs-on: hendrix
Expand Down
110 changes: 55 additions & 55 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -388,46 +388,46 @@ jobs:
pip install numpy pyopencl jsonschema
futhark test tests -c --no-terminal --backend=pyopencl --exclude=compiled --cache-extension=cache --pass-option=--build-option=-O0 --runner=tools/oclgrindrunner.sh

# test-opencl:
# runs-on: opencl
# needs: [build-linux-nix]
# if: github.repository == 'diku-dk/futhark'
# steps:
# - uses: actions/checkout@v3
test-opencl:
runs-on: hendrix
needs: [build-linux-nix]
if: github.repository == 'diku-dk/futhark'
steps:
- uses: actions/checkout@v3

# - uses: ./.github/actions/futhark-slurm
# with:
# script: |
# set -e
# virtualenv virtualenv
# source virtualenv/bin/activate
# pip install jsonschema
# module unload cuda
# module load cuda/11.8
# futhark test tests \
# --backend=opencl \
# --cache-extension=cache
# FUTHARK_BACKEND=opencl make -C tests_lib/c -j
# slurm-options: -p gpu --time=0-01:00:00 --gres=gpu:1 --job-name=fut-opencl-test --exclude=hendrixgpu05fl,hendrixgpu06fl

# test-pyopencl:
# runs-on: opencl
# needs: [build-linux-nix]
# if: github.repository == 'diku-dk/futhark'
# steps:
# - uses: actions/checkout@v3
- uses: ./.github/actions/futhark-slurm
with:
script: |
set -e
virtualenv virtualenv
source virtualenv/bin/activate
pip install jsonschema
module unload cuda
module load cuda/11.8
futhark test tests \
--backend=opencl \
--cache-extension=cache
FUTHARK_BACKEND=opencl make -C tests_lib/c -j
slurm-options: -p gpu --time=0-01:00:00 --gres=gpu:1 --job-name=fut-opencl-test --exclude=hendrixgpu05fl,hendrixgpu06fl

# - uses: ./.github/actions/futhark-slurm
# with:
# script: |
# set -e
# virtualenv virtualenv
# source virtualenv/bin/activate
# pip install numpy pyopencl jsonschema
# module unload cuda
# module load cuda/11.8
# futhark test tests --no-terminal --backend=pyopencl
# slurm-options: -p gpu --time=0-01:00:00 --gres=gpu:1 --job-name=fut-pyopencl-test --exclude=hendrixgpu05fl,hendrixgpu06fl
test-pyopencl:
runs-on: hendrix
needs: [build-linux-nix]
if: github.repository == 'diku-dk/futhark'
steps:
- uses: actions/checkout@v3

- uses: ./.github/actions/futhark-slurm
with:
script: |
set -e
virtualenv virtualenv
source virtualenv/bin/activate
pip install numpy pyopencl jsonschema
module unload cuda
module load cuda/11.8
futhark test tests --no-terminal --backend=pyopencl
slurm-options: -p gpu --time=0-01:00:00 --gres=gpu:1 --job-name=fut-pyopencl-test --exclude=hendrixgpu05fl,hendrixgpu06fl

test-cuda:
runs-on: cuda
Expand All @@ -453,25 +453,25 @@ jobs:
FUTHARK_BACKEND=cuda make -C tests_lib/c -j
slurm-options: -p gpu --time=0-01:00:00 --gres=gpu:a100:1 --job-name=fut-cuda-test

# test-hip:
# runs-on: MI100
# needs: [build-linux-nix]
# if: github.repository == 'diku-dk/futhark'
# steps:
# - uses: actions/checkout@v3
test-hip:
runs-on: MI100
needs: [build-linux-nix]
if: github.repository == 'diku-dk/futhark'
steps:
- uses: actions/checkout@v3

# - run: |
# virtualenv virtualenv
# source virtualenv/bin/activate
# pip install jsonschema
- run: |
virtualenv virtualenv
source virtualenv/bin/activate
pip install jsonschema

# - uses: ./.github/actions/futhark-slurm
# with:
# script: |
# set -e
# futhark test tests --no-terminal --backend=hip --concurrency=8
# source virtualenv/bin/activate
# FUTHARK_BACKEND=hip make -C tests_lib/c -j
- uses: ./.github/actions/futhark-slurm
with:
script: |
set -e
futhark test tests --no-terminal --backend=hip --concurrency=8
source virtualenv/bin/activate
FUTHARK_BACKEND=hip make -C tests_lib/c -j

test-wasm:
runs-on: ubuntu-22.04
Expand Down
Loading