P4 to Git Change 1333198 by lmoriche@lmoriche_opencl_dev on 2016/10/28 04:01:59
SWDEV-105604 - [OCL-LC-PAL] OpenCL program manager for LC on PAL
- Suppress the assertion message box on windows by default.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/platform/runtime.cpp#34 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#258 edit
[ROCm/clr commit: b3c63c5fb5]
This commit is contained in:
@@ -123,9 +123,12 @@ ReferenceCountedObject::release()
|
||||
static int
|
||||
reportHook(int reportType, char *message, int *returnValue)
|
||||
{
|
||||
std::cerr << message;
|
||||
::exit(3);
|
||||
return TRUE;
|
||||
if (returnValue) {
|
||||
*returnValue = 1;
|
||||
}
|
||||
std::cerr << message;
|
||||
::exit(3);
|
||||
return TRUE;
|
||||
}
|
||||
#endif // DEBUG
|
||||
|
||||
@@ -135,7 +138,7 @@ DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved)
|
||||
switch (reason) {
|
||||
case DLL_PROCESS_ATTACH:
|
||||
# ifdef DEBUG
|
||||
if (AMD_OCL_SUPPRESS_MESSAGE_BOX) {
|
||||
if (!AMD_OCL_ENABLE_MESSAGE_BOX) {
|
||||
_CrtSetReportHook(reportHook);
|
||||
_set_error_mode(_OUT_TO_STDERR);
|
||||
}
|
||||
|
||||
@@ -78,8 +78,8 @@ release(cstring, AMD_OCL_LINK_OPTIONS_APPEND, 0, \
|
||||
"Append clLinkProgram()'s options") \
|
||||
release(cstring, AMD_OCL_SC_LIB, 0, \
|
||||
"Set shader compiler shared library name or path") \
|
||||
debug(bool, AMD_OCL_SUPPRESS_MESSAGE_BOX, false, \
|
||||
"Suppress the error dialog on Windows") \
|
||||
debug(bool, AMD_OCL_ENABLE_MESSAGE_BOX, false, \
|
||||
"Enable the error dialog on Windows") \
|
||||
release(cstring, GPU_PRE_RA_SCHED, "default", \
|
||||
"Allows setting of alternate pre-RA-sched") \
|
||||
release(size_t, GPU_PINNED_XFER_SIZE, 16, \
|
||||
|
||||
Reference in New Issue
Block a user