I’ve got a program where I want to parallelize some for loops. If I add the parallelize decorator will it automatically detect my number of cores and use them? Or do I have to declare it somewhere beforehand? The examples in the docs I saw are geared towards running stuff from the interpreter.
If I define a
SharedArray for use in parallel processing (as mentioned in the docs) is there any downside downstream? I assume its type is still
SharedArray after the parallel processing. Basically can I use a
SharedArray just like a normal Array in linear processing?
Finally, is there a nice way to switch between linear and parallel processing? Ideally it’d be something like
@parallel(len_data > 1000), might there be something like that which would allow one to avoid having to write code for linear and parallel use?