Skip to content
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
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "oneAPI"
uuid = "8f75cd03-7ff8-4ecb-9b8f-daf728133b1b"
authors = ["Tim Besard <tim.besard@gmail.com>", "Alexis Montoison", "Michel Schanen <michel.schanen@gmail.com>"]
version = "2.6.0"
version = "2.6.1"

[deps]
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"
Expand Down Expand Up @@ -32,7 +32,7 @@ oneAPI_Support_jll = "b049733a-a71d-5ed3-8eba-7d323ac00b36"

[compat]
AbstractFFTs = "1.5.0"
AcceleratedKernels = "0.3.1, 0.4"
AcceleratedKernels = "0.4.3"
Adapt = "4"
CEnum = "0.4, 0.5"
ExprTools = "0.1"
Expand Down
4 changes: 0 additions & 4 deletions src/accumulate.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import oneAPI
import oneAPI: oneArray, oneAPIBackend
import AcceleratedKernels as AK

# Accumulate operations using AcceleratedKernels
Base.accumulate!(op, B::oneArray, A::oneArray; init = zero(eltype(A)), kwargs...) =
AK.accumulate!(op, B, A, oneAPIBackend(); init, kwargs...)
Expand Down
32 changes: 32 additions & 0 deletions src/mapreduce.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
# On oneAPI, use the MapReduce algorithm by default as on some Intel GPUs ConcurrentWrite hangs
# the device.
function AK.any(
pred, v::AbstractArray, backend::oneAPIBackend;

# Algorithm choice
alg::AK.PredicatesAlgorithm=AK.MapReduce(),
kwargs...
)
AK._any_impl(
pred, v, backend;
alg,
kwargs...
)
end


function AK.all(
pred, v::AbstractArray, backend::oneAPIBackend;

# Algorithm choice
alg::AK.PredicatesAlgorithm=AK.MapReduce(),
kwargs...
)
AK._all_impl(
pred, v, backend;
alg,
kwargs...
)
end


## COV_EXCL_START

# TODO
Expand Down
1 change: 1 addition & 0 deletions src/oneAPI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ using GPUArrays
using Adapt

using GPUCompiler
import AcceleratedKernels as AK

import ExprTools

Expand Down
Loading