diff --git a/GlosSITarget/main.cpp b/GlosSITarget/main.cpp index a5a28f7..1cef9ec 100644 --- a/GlosSITarget/main.cpp +++ b/GlosSITarget/main.cpp @@ -30,6 +30,11 @@ limitations under the License. #ifdef _WIN32 +// default to high performance GPU +extern "C" __declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; +extern "C" __declspec(dllexport) DWORD AmdPowerXpressRequestHighPerformance = 0x00000001; + + LONG Win32FaultHandler(struct _EXCEPTION_POINTERS* ExInfo) {