4 ms·
Does Cilk work for GPUs?
by baltcode 15y ago
Does Cilk work for GPUs?
- wmf 15y agoNot really; IIRC it assumes MIMD hardware. I think of Cilk as useful for programs that can't be written in OpenCL.
- scott_s 15y agoGPUs are data parallel machines. Cilk has support for both task and data parallelism. The task parallel constructs in Cilk wouldn't make much sense on GPUs.
- baltcode 15y agoSo data parallel constructs like parallel for loops can work with GPUs? I mean not just in theory but can the current implementations program GPUs?
- scott_s 15y agoCurrent implementations of Cilk, no, not as far as I know. There's also the fact that you need to transfer the data to the GPU. The transfer costs may kill any benefits from parallelism.