Is aparapi (API in java for Open CL) provides task parallelism or it provides only data parallelism. If provides task parallelism, is it guarantee that tasks will execute on separate devices
Asked
Active
Viewed 279 times
0
-
1I used it but never did multi-device autmatically. I think it is data parallelism. – huseyin tugrul buyukisik May 24 '13 at 21:23
-
You can adjust reference points and ranges to use data on multiple devices. Not that hard. – huseyin tugrul buyukisik May 24 '13 at 21:36
1 Answers
0
Aparapi isn't just an API in java for OPENCL, it's a parallel processing library.
You could execute an Aparapi kernel either on your GPU, or your CPU. If you choose to run an Aparapi kernel on your GPU, but either Aparapi fails to cross compile the kernel for your GPU, or your GPU can't cope with Aparapi's output, it will attempt to fall back to your CPU. When it does this, it will generate a warning.
Aparapi will only try to run a kernel on a single device, and not on a lot of different devices. If you intend to do this, you will manually need to decide whether and how you want to do this.
I hope that answers your question.

Timothy Groote
- 8,614
- 26
- 52