OEOmegaSystemHasGPU¶
bool OEOmegaSystemHasGPU()
Determines whether a GPU is present on the current system. This will check that the system is a Linux platform and the /dev/nvidia0 file exits. It will not try to create a context on the GPU so there is still the possibility that the GPU will not be available, either due to the driver being uninstalled or the GPU being used by another system user.