Skip to content

Commit 27fca08

Browse files
committed
Formatting
1 parent 7cf9c3b commit 27fca08

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/level-zero/pointer.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Base.eltype(::Type{<:ZePtr{T}}) where {T} = T
4040
Base.convert(::Type{T}, x::ZePtr) where {T<:Integer} = T(UInt(x))
4141
## integer to pointer
4242
Base.convert(::Type{ZePtr{T}}, x::Union{Int,UInt}) where {T} = ZePtr{T}(x)
43-
Base.Int(x::ZePtr) = Base.bitcast(Int, x)
43+
Base.Int(x::ZePtr) = Base.bitcast(Int, x)
4444
Base.UInt(x::ZePtr) = Base.bitcast(UInt, x)
4545

4646
# between regular and oneAPI pointers

src/broadcast.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ struct oneArrayStyle{N,B} <: AbstractGPUArrayStyle{N} end
66
oneArrayStyle{M,B}(::Val{N}) where {N,M,B} = oneArrayStyle{N,B}()
77

88
# 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} =
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} =
1111
oneArrayStyle{N, buftype(Adapt.unwrap_type(W))}()
1212

1313
# when we are dealing with different buffer styles, we cannot know
1414
# which one is better, so use shared memory
15-
Broadcast.BroadcastStyle(::oneArrayStyle{N, B1},
15+
Broadcast.BroadcastStyle(
16+
::oneArrayStyle{N, B1},
1617
::oneArrayStyle{N, B2}) where {N,B1,B2} =
1718
oneArrayStyle{N, oneL0.SharedBuffer}()
1819

0 commit comments

Comments
 (0)