P4 to Git Change 1191297 by jsjodin@alit_worker_lnx11_stg_ws on 2015/09/16 12:24:49
EPR #425397 - Fix SIGFPE filtering to be set up in the CPU device. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/cpu/cpudevice.cpp#275 edit ... //depot/stg/opencl/drivers/opencl/runtime/os/os.hpp#29 edit ... //depot/stg/opencl/drivers/opencl/runtime/os/os_posix.cpp#41 edit ... //depot/stg/opencl/drivers/opencl/runtime/os/os_win32.cpp#46 edit
Tento commit je obsažen v:
@@ -51,7 +51,8 @@ Device::~Device()
|
||||
void
|
||||
Device::tearDown()
|
||||
{
|
||||
aclCompilerFini(compiler_);
|
||||
amd::Os::uninstallSigfpeHandler();
|
||||
aclCompilerFini(compiler_);
|
||||
}
|
||||
bool
|
||||
Device::init()
|
||||
@@ -60,6 +61,9 @@ Device::init()
|
||||
if (CPU_MAX_COMPUTE_UNITS == 0)
|
||||
return false;
|
||||
|
||||
if(!amd::Os::installSigfpeHandler())
|
||||
return false;
|
||||
|
||||
const char *library = getenv("COMPILER_LIBRARY");
|
||||
aclCompilerOptions opts = {
|
||||
sizeof(aclCompilerOptions_0_8),
|
||||
|
||||
Odkázat v novém úkolu
Zablokovat Uživatele