Skip to content

Commit

Permalink
Enable the KA.jl test suite.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Sep 13, 2024
1 parent d312bab commit 687541b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
IOCapture = "b5f81e59-6552-4d32-b1f0-c071b021bf89"
KernelAbstractions = "63c18a36-062a-441e-b654-da1e3ab1ce7c"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
pocl_jll = "627d6b7a-bbe6-5189-83e7-98cc0a5aeadd"
14 changes: 14 additions & 0 deletions test/kernelabstractions.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
if !in("cl_khr_il_program", cl.device().extensions)
@warn "Skipping KernelAbstractions.jl tests on $(cl.platform().name)"
else

import KernelAbstractions
include(joinpath(dirname(pathof(KernelAbstractions)), "..", "test", "testsuite.jl"))

skip_tests=Set([
"sparse",
"Convert", # Need to opt out of i128
])
Testsuite.testsuite(OpenCLBackend, "OpenCL", OpenCL, CLArray, CLDeviceArray; skip_tests)

end
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ include("buffer.jl")

include("array.jl")
include("execution.jl")
include("kernelabstractions.jl")

end

Expand Down

0 comments on commit 687541b

Please sign in to comment.