Skip to content

Commit bec8c71

Browse files
Add .git-blame-ignore-revs and a few other fixes (#541)
1 parent 3ad45e2 commit bec8c71

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

.git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Whitespace fixes (#346)
2+
28881827037201fd8c8b64bd20efc7a572ab1564

docs/src/faq/contributing.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ so you should not have to define them. If using a struct for the first time in a
4343
interface, remember to add tests! Objective-C object methods and constructors are not yet automtically
4444
generatied, so any contributions there are welcome.
4545

46+
It is also recommended to follow [these steps](https://github.com/fredrikekre/Runic.jl?tab=readme-ov-file#ignore-formatting-commits-in-git-blame) from the Runic.jl documentation
47+
in your local development repository so that formatting commits are ignored in blame.
48+
4649
## Mapping to Metal Intrinsics
4750

4851
Some Metal functions map directly to Apple intermediate representation intrinsics. In this

src/broadcast.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ BroadcastStyle(::MtlArrayStyle{N, S1},
1717
MtlArrayStyle{N, SharedStorage}()
1818

1919
# allocation of output arrays
20-
Base.similar(bc::Broadcasted{MtlArrayStyle{N,S}}, ::Type{T}, dims) where {T,N,S} =
20+
Base.similar(::Broadcasted{MtlArrayStyle{N, S}}, ::Type{T}, dims) where {T, N, S} =
2121
similar(MtlArray{T,length(dims),S}, dims)
2222

2323
# a static version of CartesianIndices that helps avoiding integer division

src/compiler/execution.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ Adapt.adapt_structure(to::Adaptor, r::Base.RefValue) = MtlRefValue(adapt(to, r[]
134134
# broadcast sometimes passes a ref(type), resulting in a GPU-incompatible DataType box.
135135
# avoid that by using a special kind of ref that knows about the boxed type.
136136
struct MtlRefType{T} <: Ref{DataType} end
137-
Base.getindex(r::MtlRefType{T}) where T = T
138-
Adapt.adapt_structure(to::Adaptor, r::Base.RefValue{<:Union{DataType,Type}}) =
137+
Base.getindex(::MtlRefType{T}) where {T} = T
138+
Adapt.adapt_structure(::Adaptor, r::Base.RefValue{<:Union{DataType, Type}}) =
139139
MtlRefType{r[]}()
140140

141141
# case where type is the function being broadcasted

src/version.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function metal_support()
8686
v"3.0"
8787
elseif macos >= v"12"
8888
v"2.4"
89-
elseif macos v> v"11"
89+
elseif macos >= v"11"
9090
v"2.3"
9191
elseif macos >= v"10.15"
9292
v"2.2"

0 commit comments

Comments
 (0)