Hacker News new | ask | show | jobs
by roc 4549 days ago
Doesn't GCD do OpenCL?

Or do you mean something more seamless and auto-magical?

1 comments

No - GCD is only about distributing workloads across CPU cores, and doesn't involve the GPU.

OpenCL uses a special programming model so you can't use it for general application code. It's good for doing repetitive operations on large arrays - e.g. Image or signal processing, or machine learning. OpenCL code will run in the CPU if there is no GPU or if the overhead of shipping the data to the GPU is too high.