Reputation: 144
Working on an Object-Oriented C++ library and I want to take advantage of my Intel Graphics GPU. I tried to learn some OpenCL only to find out it doesn't support C++ O.O programming style and classes. Any suggestions of libraries or frameworks that could make it easier to tap into the GPU would be really helpful.
Many thanks, Amine
Upvotes: 1
Views: 244
Reputation: 1
Yes, OpenCL (and CUDA) are specialized programming languages, because GPGPUs are very specialized heterogeneous computing devices.
You might perhaps be interested in semi-automatic translation of some subset of C code (or Fortran) to these, but there is No Silver Bullet. Either use a library (e.g. TensorFlow) ported to GPGPUs or accept the idea of difficult development efforts specific to your GPGPU hardware.
Look into OpenACC, TransPyle, Numba, VEXCL, etc.
Read also this about SYCL.
Upvotes: 1