P4 to Git Change 1738443 by gandryey@gera-w8 on 2019/01/31 14:38:27

SWDEV-79445 - OCL generic changes and code clean-up
	- Clean-up suppressing message box logic

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#602 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#124 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/runtime.cpp#39 edit
Este commit está contenido en:
foreman
2019-01-31 15:46:34 -05:00
padre 9090da11ef
commit 48b5ff4600
Se han modificado 3 ficheros con 1 adiciones y 28 borrados
-17
Ver fichero
@@ -1188,16 +1188,6 @@ static void parseRequestedDeviceList(requestedDevices_t& requestedDevices) {
}
}
#if defined(_WIN32) && defined(DEBUG)
#include <cstdio>
#include <crtdbg.h>
static int reportHook(int reportType, char* message, int* returnValue) {
fprintf(stderr, "%s", message);
::exit(3);
return 1;
}
#endif // _WIN32 & DEBUG
bool Device::init() {
CALuint numDevices = 0;
bool useDeviceList = false;
@@ -1217,13 +1207,6 @@ bool Device::init() {
// osAssertSetStyle(OSASSERT_STYLE_LOGANDEXIT);
#endif // WIN32
#if defined(_WIN32) && defined(DEBUG)
if (::getenv("AMD_OCL_SUPPRESS_MESSAGE_BOX")) {
_CrtSetReportHook(reportHook);
_set_error_mode(_OUT_TO_STDERR);
}
#endif // _WIN32 & DEBUG
gslInit();
#if defined(_WIN32) && !defined(_WIN64)
-10
Ver fichero
@@ -1213,16 +1213,6 @@ static void parseRequestedDeviceList(const char* requestedDeviceList,
}
}
#if defined(_WIN32) && defined(DEBUG)
#include <cstdio>
#include <crtdbg.h>
static int reportHook(int reportType, char* message, int* returnValue) {
fprintf(stderr, "%s", message);
::exit(3);
return 1;
}
#endif // _WIN32 & DEBUG
bool Device::init() {
uint32_t numDevices = 0;
bool useDeviceList = false;
+1 -1
Ver fichero
@@ -111,7 +111,7 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved) {
switch (reason) {
case DLL_PROCESS_ATTACH:
#ifdef DEBUG
if (!AMD_OCL_ENABLE_MESSAGE_BOX) {
if (!::getenv("AMD_OCL_ENABLE_MESSAGE_BOX")) {
_CrtSetReportHook(reportHook);
_set_error_mode(_OUT_TO_STDERR);
}