4747 # CPU settings
4848 max_tasks=Threads.nthreads(),
4949 min_elems=1,
50- prefer_threads::Bool=true,
5150
5251 # GPU settings
5352 block_size=256,
@@ -61,8 +60,7 @@ MtlArray, oneArray - with one GPU thread per index.
6160On CPUs at most `max_tasks` threads are launched, or fewer such that each thread processes at least
6261`min_elems` indices; if a single task ends up being needed, `f` is inlined and no thread is
6362launched. Tune it to your function - the more expensive it is, the fewer elements are needed to
64- amortise the cost of launching a thread (which is a few μs). `prefer_threads` tells AK to prioritize
65- using the CPU algorithm implementation (default behaviour) over the KA algorithm through POCL.
63+ amortise the cost of launching a thread (which is a few μs).
6664
6765# Examples
6866Normally you would write a for loop like this:
147145 # CPU settings
148146 max_tasks=Threads.nthreads(),
149147 min_elems=1,
150- prefer_threads::Bool=true,
151148
152149 # GPU settings
153150 block_size=256,
@@ -161,8 +158,7 @@ MtlArray, oneArray - with one GPU thread per index.
161158On CPUs at most `max_tasks` threads are launched, or fewer such that each thread processes at least
162159`min_elems` indices; if a single task ends up being needed, `f` is inlined and no thread is
163160launched. Tune it to your function - the more expensive it is, the fewer elements are needed to
164- amortise the cost of launching a thread (which is a few μs). `prefer_threads` tells AK to prioritize
165- using the CPU algorithm implementation (default behaviour) over the KA algorithm through POCL.
161+ amortise the cost of launching a thread (which is a few μs).
166162
167163# Examples
168164Normally you would write a for loop like this:
0 commit comments