We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cf9c3b commit 27fca08Copy full SHA for 27fca08
lib/level-zero/pointer.jl
@@ -40,7 +40,7 @@ Base.eltype(::Type{<:ZePtr{T}}) where {T} = T
40
Base.convert(::Type{T}, x::ZePtr) where {T<:Integer} = T(UInt(x))
41
## integer to pointer
42
Base.convert(::Type{ZePtr{T}}, x::Union{Int,UInt}) where {T} = ZePtr{T}(x)
43
-Base.Int(x::ZePtr) = Base.bitcast(Int, x)
+Base.Int(x::ZePtr) = Base.bitcast(Int, x)
44
Base.UInt(x::ZePtr) = Base.bitcast(UInt, x)
45
46
# between regular and oneAPI pointers
src/broadcast.jl
@@ -6,13 +6,14 @@ struct oneArrayStyle{N,B} <: AbstractGPUArrayStyle{N} end
6
oneArrayStyle{M,B}(::Val{N}) where {N,M,B} = oneArrayStyle{N,B}()
7
8
# identify the broadcast style of a (wrapped) oneArray
9
-Broadcast.BroadcastStyle(::Type{<:oneArray{T,N,B}}) where {T,N,B} = oneArrayStyle{N,B}()
10
-Broadcast.BroadcastStyle(W::Type{<:oneWrappedArray{T,N}}) where {T,N} =
+Broadcast.BroadcastStyle(::Type{<:oneArray{T, N, B}}) where {T, N, B} = oneArrayStyle{N, B}()
+Broadcast.BroadcastStyle(W::Type{<:oneWrappedArray{T, N}}) where {T, N} =
11
oneArrayStyle{N, buftype(Adapt.unwrap_type(W))}()
12
13
# when we are dealing with different buffer styles, we cannot know
14
# which one is better, so use shared memory
15
-Broadcast.BroadcastStyle(::oneArrayStyle{N, B1},
+Broadcast.BroadcastStyle(
16
+ ::oneArrayStyle{N, B1},
17
::oneArrayStyle{N, B2}) where {N,B1,B2} =
18
oneArrayStyle{N, oneL0.SharedBuffer}()
19
0 commit comments