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:
foreman
2015-09-16 12:32:46 -04:00
rodič 8962c06704
revize 972644abff
4 změnil soubory, kde provedl 44 přidání a 23 odebrání
+5 -1
Zobrazit soubor
@@ -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),