detecting if a gpu device is connected to display device driver

Hello:

I would like an OpenCL api to determine if a GPU device is also being used by the operating system’s display device driver, so that I can avoid executing kernels on this device (or at least warn the user…).

Regards,
-Jim
Esri