Skip to content
Merged
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 Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ SPIRVIntrinsics = {path = "lib/intrinsics"}
[compat]
Adapt = "4"
GPUArrays = "12.1"
GPUCompiler = "2.20"
GPUCompiler = "2.23.2"
GPUToolbox = "3.6"
KernelAbstractions = "0.10"
KernelInterface = "0.4"
Expand Down
7 changes: 1 addition & 6 deletions test/intrinsics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,7 @@ end
xs = [1//3, -5//7, 3//2, 2//-9]
ys = [2//5, 7//3, -1//4, 9//2]
zs = [-1//2, 1//7, 3//8, 1//1]
# Intel's CPU runtime can't compile the `OpSMulExtended` of checked `Int` products
if OpenCL.OpenCLKernels.intel_cpu_runtime(cl.device())
@test_skip "checked rational multiplication on Intel's CPU runtime"
else
@test Array(map(muladd, CLArray(xs), CLArray(ys), CLArray(zs))) == muladd.(xs, ys, zs)
end
@test Array(map(muladd, CLArray(xs), CLArray(ys), CLArray(zs))) == muladd.(xs, ys, zs)
@test Array(map(-, CLArray(xs))) == -xs
@test Array(map((n, d) -> n // d, CLArray([1, 3, -4]), CLArray([-2, 6, -8]))) ==
[-1//2, 1//2, 1//2]
Expand Down
Loading