Post

Replies

Boosts

Views

Activity

Comment on Do BLAS and LAPACK functions use Apple Silicon features
The BLAS page in the Accelerate documentation does say it is "Apple's implementation of BLAS". See here. As you suggest, I guess it's safe to say that the BLAS functions are optimized for Apple Silicon since it's Apple's implementation of the routines. I can't find any Accelerate documentation about the LAPACK functions. But I guess we can assume those functions are optimized too since the BLAS functions appear to be optimized.
Topic: Machine Learning & AI SubTopic: General Tags:
Oct ’24
Comment on Do BLAS and LAPACK functions use Apple Silicon features
I asked a question on the Swift Forums about redundant functions in Accelerate where I noticed some of the vDSP functions are similar to BLAS functions. This led to my post on here because Steve suggested I ask the question on the Apple Developer Forums. However, on here, I rephrased the question specifically about BLAS and LAPACK instead of other Accelerate features like vDSP.
Topic: Machine Learning & AI SubTopic: General Tags:
Oct ’24
Comment on Default window size does not work for macOS 13 app using SwiftUI
Yes, deleting the app's folder in ~/Library/Containers/ fixes the problem. I don't have to restart the Mac, just deleting the folder resets the state of the app which makes it use the default window size.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’23
Comment on Data storage for a Matrix struct when working with Accelerate
That post on the Swift Forums is about using a generic type for a Matrix struct. The post here is about using an Array or a buffer for the underlying data storage in a Matrix struct.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’24
Comment on Data storage for a Matrix struct when working with Accelerate
What do you mean by "no copying to temporary buffers when passing to BLAS"? In my example code, where am I copying to temporary buffers?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’24
Comment on Data storage for a Matrix struct when working with Accelerate
Regarding the *= operator, I can implement it using the function shown below for both the Array based solution and the buffer based solution. So I don't understand how this is supposed to be different for the array or buffer approach. func *= (lhs: inout Matrix<Double>, rhs: Matrix<Double>) { lhs = lhs * rhs }
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’24
Comment on Do BLAS and LAPACK functions use Apple Silicon features
So the BLAS and LAPACK functions that come with Accelerate are optimized for Apple Silicon?
Topic: Machine Learning & AI SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’24
Comment on Do BLAS and LAPACK functions use Apple Silicon features
The BLAS page in the Accelerate documentation does say it is "Apple's implementation of BLAS". See here. As you suggest, I guess it's safe to say that the BLAS functions are optimized for Apple Silicon since it's Apple's implementation of the routines. I can't find any Accelerate documentation about the LAPACK functions. But I guess we can assume those functions are optimized too since the BLAS functions appear to be optimized.
Topic: Machine Learning & AI SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’24
Comment on Do BLAS and LAPACK functions use Apple Silicon features
I asked a question on the Swift Forums about redundant functions in Accelerate where I noticed some of the vDSP functions are similar to BLAS functions. This led to my post on here because Steve suggested I ask the question on the Apple Developer Forums. However, on here, I rephrased the question specifically about BLAS and LAPACK instead of other Accelerate features like vDSP.
Topic: Machine Learning & AI SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’24
Comment on Integer arithmetic with Accelerate
All of these functions are for 32-bit integers (Int32) what about 64-bit integers (Int64 and Int)?
Topic: Machine Learning & AI SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’24
Comment on Use FormatStyle to print formatted values from a Vector structure
Yeah, I thought I would try my luck here and see if I get different answers. I'm always conflicted on where to ask questions: on here or on the swift forum.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’25
Comment on BNNS random number generator for Double value types
I tried this but I have to create two arrays to get the results (see reply below). One array contains Float values and the result array contains Double values. It would be preferred to just create the Double array and fill it with random values from BNNS.
Topic: Machine Learning & AI SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’25