no, i don't have access to osx. i would suggest to just not use it on osx (like #ifndef __APPLE__ arround the detection of the gpu as its not important imo)