Or use a special suffix
@PrivateMemorySpace(99) int buffer = new int;
int buffer_$private$99 = new int;
Note that any code which must be runnable in
Kernel.EXECUTION_MODE.JTP will fail to work correctly if it uses such an
array, as the array will be shared by all threads. The solution is to create a
Kernel.NoCL method called at the start of
Kernel.run() which sets
the field to an array returned from a static
MedianKernel7x7in the samples for an example.
|Modifier and Type||Required Element and Description|
Size of the array used as __private buffer.
Copyright © 2016 Syncleus. All rights reserved.