Skip to content

Commit c62a66c

Browse files
committed
Add OpenCL testing
1 parent 2ecc4ee commit c62a66c

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/CI-CPU.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,26 @@ jobs:
6363
- uses: julia-actions/julia-runtest@v1
6464
env:
6565
JULIA_NUM_THREADS: ${{ matrix.env.JULIA_NUM_THREADS }}
66+
OpenCL:
67+
name: OpenCL
68+
runs-on: ubuntu-latest
69+
timeout-minutes: 60
70+
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
71+
actions: write
72+
contents: read
73+
strategy:
74+
fail-fast: true
75+
steps:
76+
- uses: actions/checkout@v4
77+
- uses: julia-actions/setup-julia@v2
78+
with:
79+
version: 1
80+
arch: x64
81+
- uses: julia-actions/cache@v2
82+
- uses: julia-actions/julia-buildpkg@v1
83+
- uses: julia-actions/julia-runtest@v1
84+
with:
85+
test_args: '--OpenCL'
6686
# cpuKA:
6787
# name: KA CPU Backend
6888
# runs-on: ubuntu-latest

test/runtests.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ elseif "--OpenCL" in ARGS
4141
using OpenCL
4242
OpenCL.versioninfo()
4343
const BACKEND = OpenCLBackend()
44-
TEST_DL[] = true
4544
elseif !@isdefined(BACKEND)
4645
# Otherwise do CPU tests
4746
using InteractiveUtils

0 commit comments

Comments
 (0)