This fixes the script on macos
This commit adds a script that detects which GPU is currently used in Windows and Linux