Controlling number of threads used by Accelerate framework

Is there a way to limit the number of threads used by the Accelerate framework, for example limiting it to 1.

Since I am managing my own parallelism I don't want the frameworks to utilize parallelism in addition.
Hi,

For BNNS, you can specify the number of threads in BNNSFilterParameters.

For vImage, pass the kvImageDoNotTile flag to turn off multithreading.

Most of vDSP is single threaded, but for those parts that aren’t (detailed on the main vDSP page), and for the rest of Accelerate, VECLIB_MAXIMUM_THREADS defines the maximum number of threads.

Cheers
Controlling number of threads used by Accelerate framework
 
 
Q