Skip to content

Commit

Permalink
Fix segmentation fault
Browse files Browse the repository at this point in the history
  • Loading branch information
christiangnrd committed Jun 18, 2024
1 parent 20db056 commit bd57ec0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion lib/mps/matrixrandom.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ end
function MPSMatrixRandomDefaultDistributionDescriptor()
desc = @objc [MPSMatrixRandomDistributionDescriptor defaultDistributionDescriptor]::id{MPSMatrixRandomDistributionDescriptor}
obj = MPSMatrixRandomDistributionDescriptor(desc)
finalizer(release, obj)
return obj
end

Expand Down
1 change: 1 addition & 0 deletions test/random.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Random
using Metal
using Metal: can_use_mpsrandom

const RAND_TYPES = [Float16, Float32, Int8, UInt8, Int16, UInt16, Int32, UInt32, Int64,
Expand Down

0 comments on commit bd57ec0

Please sign in to comment.