Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multi-core J -- Parallelisation

Is there a way to get J to use multiple cores ? I thought part of the benefit of APL/J was that the language constructs lent themselves well to parallel solutions.

Looking at my CPU usage (I'm on OSX) there's clearly only a single processor in use.

I've got a heavy-ish function f acting on a list, and I don't see why it couldn't divide the list into 4 pieces, and re-assemble the results ?

like image 382
user1202733 Avatar asked Mar 29 '15 18:03

user1202733


1 Answers

ArrayFire may be worth looking into. Its OpenCL with support for AMD/nvidia and backward fallback to CPU. Its array processing. It should bind easily to J, as it does in matlab.

like image 183
pascalJ Avatar answered Oct 05 '22 03:10

pascalJ