Skip to content

Commit 2fcc558

Browse files
authored
Update to GPUArrays 0.9 (#251)
* Switch to GPUArrays buffer management. * Support for mixed-type constructors.
1 parent fb0233c commit 2fcc558

File tree

6 files changed

+63
-205
lines changed

6 files changed

+63
-205
lines changed

Manifest.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
julia_version = "1.8.5"
44
manifest_format = "2.0"
5-
project_hash = "2b849e584a3386ec6e79f84d9924e491f668436f"
5+
project_hash = "3c71723ae8de626fd078be79d06f06f4692acdda"
66

77
[[deps.Adapt]]
88
deps = ["LinearAlgebra", "Requires"]
@@ -67,9 +67,9 @@ uuid = "7b1f6079-737a-58dc-b8bc-7a2ca5c1b5ee"
6767

6868
[[deps.GPUArrays]]
6969
deps = ["Adapt", "GPUArraysCore", "LLVM", "LinearAlgebra", "Printf", "Random", "Reexport", "Serialization", "Statistics"]
70-
git-tree-sha1 = "2e57b4a4f9cc15e85a24d603256fe08e527f48d1"
70+
git-tree-sha1 = "8ad8f375ae365aa1eb2f42e2565a40b55a4b69a8"
7171
uuid = "0c68f7d7-f131-5f86-a1c3-88cf8149b2d7"
72-
version = "8.8.1"
72+
version = "9.0.0"
7373

7474
[[deps.GPUArraysCore]]
7575
deps = ["Adapt"]

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
2727
Adapt = "3"
2828
CEnum = "0.4"
2929
ExprTools = "0.1"
30-
GPUArrays = "8.4"
30+
GPUArrays = "9"
3131
GPUCompiler = "0.23"
3232
KernelAbstractions = "0.9.1"
3333
LLVM = "6"

lib/mps/matrix.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function MPSMatrix(arr::MtlMatrix{T}) where T
7272
mat = @objc [MPSMatrix alloc]::id{MPSMatrix}
7373
obj = MPSMatrix(mat)
7474
finalizer(release, obj)
75-
@objc [obj::id{MPSMatrix} initWithBuffer:arr.buffer::id{MTLBuffer}
75+
@objc [obj::id{MPSMatrix} initWithBuffer:arr::id{MTLBuffer}
7676
descriptor:desc::id{MPSMatrixDescriptor}]::id{MPSMatrix}
7777
return obj
7878
end

lib/mps/vector.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function MPSVector(arr::MtlVector{T}) where T
5454
vec = @objc [MPSVector alloc]::id{MPSVector}
5555
obj = MPSVector(vec)
5656
finalizer(release, obj)
57-
@objc [obj::id{MPSVector} initWithBuffer:arr.buffer::id{MTLBuffer}
57+
@objc [obj::id{MPSVector} initWithBuffer:arr::id{MTLBuffer}
5858
descriptor:desc::id{MPSVectorDescriptor}]::id{MPSVector}
5959
return obj
6060
end
@@ -116,4 +116,4 @@ function matvecmul!(c::MtlVector, a::MtlMatrix, b::MtlVector, alpha::Number=true
116116
commit!(cmdbuf)
117117

118118
return c
119-
end
119+
end

0 commit comments

Comments
 (0)