Greetings,
For a Windows laptop the following lines in your code forces Optimus to switch to nvidia GPU, which is a good way to control what runs on where on a per application basis.
extern “C” {
_declspec(dllexport) uint32_t NvOptimusEnablement = 0x00000001;
}
Is there a Linux equivalent of this? How 'bout Mac OSX?