P4 to Git Change 1402826 by lmoriche@lmoriche_opencl_dev2 on 2017/04/26 12:05:30

SWDEV-102726 - [OCL-LC-ROCm] Open source OpenCL Runtime
	- Cleanups to build with gcc 5.4 and cmake.

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/elf.cpp#37 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/elf.hpp#25 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/blit.cpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#50 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.cpp#23 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#17 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprintf.cpp#8 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#65 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#36 edit


[ROCm/clr commit: d2ca5e309d]
This commit is contained in:
foreman
2017-04-26 12:23:11 -04:00
parent cb87398321
commit 86bfb54749
9 changed files with 22 additions and 15 deletions
+3 -1
View File
@@ -7,6 +7,8 @@
#include "device/blit.hpp"
#include "utils/debug.hpp"
#include <cmath>
namespace device {
HostBlitManager::HostBlitManager(VirtualDevice& vDev, Setup setup)
@@ -643,7 +645,7 @@ cl_uint HostBlitManager::sRGBmap(float fc) const {
double c = (double)fc;
#ifdef ATI_OS_LINUX
if (isnan(c)) c = 0.0;
if (std::isnan(c)) c = 0.0;
#else
if (_isnan(c)) c = 0.0;
#endif