Skip to content

Commit c1d78e5

Browse files
Merge branch 'main' into reverse
2 parents 53a0c88 + 8bf1b70 commit c1d78e5

File tree

13 files changed

+1036
-162
lines changed

13 files changed

+1036
-162
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "Metal"
22
uuid = "dde4c033-4e86-420c-a63e-0dd931031962"
3-
version = "1.7.0"
3+
version = "1.8.0"
44

55
[deps]
66
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if you want to use it. PRs are very welcome!
3434

3535
- Mac device with M-series chip
3636
- Julia 1.10-1.11
37-
- macOS 13-15
37+
- macOS 13-26
3838

3939
These requirements are fairly strict, and are due to our limited development
4040
resources (manpower, hardware). Supported OS versions follow Apple's support,
@@ -63,23 +63,23 @@ importing the package:
6363
julia> using Metal
6464
6565
julia> Metal.versioninfo()
66-
macOS 15.5.0, Darwin 24.5.0
66+
macOS 26.0.0, Darwin 25.0.0
6767
6868
Toolchain:
6969
- Julia: 1.11.6
7070
- LLVM: 16.0.6
7171
7272
Julia packages:
73-
- Metal.jl: 1.6.3
74-
- GPUArrays: 11.2.3
73+
- Metal.jl: 1.8.0
74+
- GPUArrays: 11.2.5
7575
- GPUCompiler: 1.6.1
76-
- KernelAbstractions: 0.9.37
76+
- KernelAbstractions: 0.9.38
7777
- ObjectiveC: 3.4.2
7878
- LLVM: 9.4.2
7979
- LLVMDowngrader_jll: 0.6.0+1
8080
8181
1 device:
82-
- Apple M2 Max (64.000 KiB allocated)
82+
- Apple M2 Max 30 GPU cores (64.000 KiB allocated)
8383
```
8484

8585

@@ -133,9 +133,10 @@ julia> Array(c)
133133
## Metal API wrapper
134134

135135
Finally, all of the above functionality is made possible by interfacing with the Metal
136-
libraries through [ObjectiveC.jl](https://github.com/JuliaInterop/ObjectiveC.jl). We provide low-level objects and functions that map These
137-
low-level API wrappers, along with some slightly higher-level Julia wrappers, are available
138-
in the `MTL` submodule exported by Metal.jl:
136+
libraries through [ObjectiveC.jl](https://github.com/JuliaInterop/ObjectiveC.jl). We provide
137+
low-level objects and functions that map to the Objective-C Metal API. These low-level API
138+
wrappers, along with some slightly higher-level Julia wrappers, are available in the `MTL`
139+
submodule exported by Metal.jl:
139140

140141
```julia-repl
141142
julia> using Metal

lib/mpsgraphs/libmpsgraph.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,13 @@ end
125125
MPSGraphExecutionStageCompleted = 0x0000000000000000
126126
end
127127

128+
@cenum MPSGraphReducedPrecisionFastMath::UInt64 begin
129+
MPSGraphReducedPrecisionFastMathNone = 0x0000000000000000
130+
MPSGraphReducedPrecisionFastMathAllowFP16Conv2DWinogradTransformIntermediate = 0x0000000000000002
131+
MPSGraphReducedPrecisionFastMathAllowFP16Intermediates = 0x0000000000000002
132+
MPSGraphReducedPrecisionFastMathDefault = 0x0000000000000000
133+
end
134+
128135
@objcwrapper immutable = true MPSGraphCompilationDescriptor <: MPSGraphObject
129136

130137
@objcproperties MPSGraphCompilationDescriptor begin
@@ -134,6 +141,7 @@ end
134141
@autoproperty dispatchQueue::id{dispatch_queue_t} setter = setDispatchQueue
135142
@autoproperty optimizationProfile::MPSGraphOptimizationProfile setter = setOptimizationProfile
136143
@autoproperty callables::id{MPSGraphCallableMap} setter = setCallables availability = macos(v"14.1.0")
144+
@autoproperty reducedPrecisionFastMath::MPSGraphReducedPrecisionFastMath setter = setReducedPrecisionFastMath availability = macos(v"26.0.0")
137145
end
138146

139147
@objcwrapper immutable = true MPSGraphExecutionDescriptor <: MPSGraphObject

lib/mtl/MTL.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ include("size.jl")
2727
include("device.jl")
2828
include("resource.jl")
2929
include("storage_type.jl")
30-
include("compile-opts.jl")
30+
include("compile_opts.jl")
3131
include("library.jl")
3232
include("function.jl")
3333
include("events.jl")
File renamed without changes.

0 commit comments

Comments
 (0)