cascade.set_nthreads

Contents

cascade.set_nthreads#

cascade.set_nthreads(n: int) None#

Sets the maximum number of threads allowed.

Cascade under the hood works with the Threading Building Blocks (TBB) API to control the parallelism of all its parts. This function exposes the max_allowed_parallelism TBB global control setter.

Parameters:

n (int) – The maximum allowed number of threads.