Zoals je jou kan voorstellen, kan de hardware-architectuur van GPU’s aanzienlijk variëren. Er zijn verschillende fabrikanten en zelfs verschillende generaties GPU’s van dezelfde fabrikant zijn mogelijk niet vergelijkbaar. Tegelijkertijd onthullen GPU-fabrikanten normaal gesproken niet alle hardwaredetails van hun producten aan het publiek. Een van de gevolgen hiervan is de noodzaak om propriëtaire stuurprogramma’s onder Linux te gebruiken, als je volledig wilt profiteren van jouw grafische kaart.

Fortunately an industry consortium lead by The Khronos Group has developed an open, standardized interface called OpenCL, which allows your GPU to be used as a numerical processing device. OpenCL offers a C99-like programming language with a strong focus on parallel computing. An application that wants to use OpenCL will need OpenCL source code that it hands over to a hardware-specific compiler at run-time. This way applications can use OpenCL on different GPU architectures (even at the same time). All of the hardware “secrets” are hidden in this compiler and are normally not visible to the user (or the application). The compiled OpenCL code is loaded onto your GPU and – with certain API calls – it is ready to perform calculations for you.