Skip to content

Commit 46d8ad0

Browse files
Support for Julia 1.12 (#576)
Co-authored-by: Tim Besard <[email protected]>
1 parent bc1d702 commit 46d8ad0

File tree

5 files changed

+12
-27
lines changed

5 files changed

+12
-27
lines changed

.buildkite/pipeline.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ steps:
3030
julia:
3131
- "1.10"
3232
- "1.11"
33+
- "1.12"
3334
- "nightly"
3435
adjustments:
3536
- with:
@@ -95,30 +96,6 @@ steps:
9596
build.message !~ /\[skip validation\]/ &&
9697
build.message !~ /\[skip special\]/
9798
timeout_in_minutes: 60
98-
- label: "Opaque pointers"
99-
plugins:
100-
- JuliaCI/julia#v1:
101-
version: "1.11"
102-
- JuliaCI/julia-test#v1:
103-
test_args: "--quickfail"
104-
- JuliaCI/julia-coverage#v1:
105-
codecov: true
106-
dirs:
107-
- src
108-
- lib
109-
env:
110-
JULIA_LLVM_ARGS: '--opaque-pointers'
111-
agents:
112-
queue: "juliaecosystem"
113-
os: "macos"
114-
arch: "aarch64"
115-
if: |
116-
build.message =~ /\[only tests\]/ ||
117-
build.message =~ /\[only special\]/ ||
118-
build.message !~ /\[only/ && !build.pull_request.draft &&
119-
build.message !~ /\[skip tests\]/ &&
120-
build.message !~ /\[skip special\]/
121-
timeout_in_minutes: 60
12299

123100
- wait: ~
124101
continue_on_failure: true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if you want to use it. PRs are very welcome!
3333
## Requirements
3434

3535
- Mac device with M-series chip
36-
- Julia 1.10-1.11
36+
- Julia 1.10-1.12
3737
- macOS 13-26
3838

3939
These requirements are fairly strict, and are due to our limited development

src/compiler/reflection.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,5 @@ function return_type(@nospecialize(func), @nospecialize(tt))
6969
job = CompilerJob(source, config)
7070
interp = GPUCompiler.get_interpreter(job)
7171
sig = Base.signature_type(func, tt)
72-
Core.Compiler.return_type(interp, sig)
72+
Core.Compiler._return_type(interp, sig)
7373
end

src/device/quirks.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,12 @@ end
8383
end
8484
ρ, k
8585
end
86+
87+
@static if VERSION >= v"1.12.0-DEV.1736" # Partially reverts JuliaLang/julia PR #56750
88+
let BitInteger64 = Union{Int64,UInt64}
89+
@device_override function Base.checkbounds(::Type{Bool}, v::StepRange{<:BitInteger64, <:BitInteger64}, i::BitInteger64)
90+
@inline
91+
return checkindex(Bool, eachindex(IndexLinear(), v), i)
92+
end
93+
end
94+
end

test/array.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ end
5757

5858
# Test a few explicitly unsupported types
5959
@test_throws "MtlArray only supports element types that are stored inline" MtlArray(BigInt[1])
60-
@test_throws "MtlArray only supports element types that are stored inline" MtlArray(BigFloat[1])
6160
@test_throws "Metal does not support Float64 values" MtlArray(Float64[1])
6261
@test_throws "Metal does not support Int128 values" MtlArray(Int128[1])
6362
@test_throws "Metal does not support UInt128 values" MtlArray(UInt128[1])

0 commit comments

Comments
 (0)