OpenCL C / C ++ Dynamic Link Library (win32 or more)

I am trying to open OpenCL, and in order to put this into production, I would like to dynamically contact OpenCL.DLL (when under Windows) in order to handle the "graceful" case when OpenCL is not installed on the host computer.

Is there an accessible library (or code snippet) that takes care of this dynamic binding in C or C ++, like GLEW for OpenGL? I would like to avoid the hassle of doing it myself.

Thank,

+3
source share
3 answers

Win32, . OpenCL, , , , __pfnDliFailureHook2(dliFailLoadLib). ; , ( ). OpenCL.

0

Source: https://habr.com/ru/post/1792821/


All Articles