P4 to Git Change 1603633 by lmoriche@lmoriche_opencl_dev2 on 2018/09/10 13:24:30

SWDEV-1 - Cleanups required to build with gcc-5.4

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprintf.cpp#11 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccompiler.cpp#45 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#100 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#85 edit
... //depot/stg/opencl/drivers/opencl/support/libcxx/build/Makefile.libcxx#7 edit
Этот коммит содержится в:
foreman
2018-09-10 13:33:24 -04:00
родитель 03e6266c64
Коммит fea536eea4
4 изменённых файлов: 6 добавлений и 4 удалений
+3 -3
Просмотреть файл
@@ -11,7 +11,7 @@
#include "device/pal/palprintf.hpp"
#include <cstdio>
#include <algorithm>
#include <math.h>
#include <cmath>
namespace pal {
@@ -275,13 +275,13 @@ size_t PrintfDbg::outputArgument(const std::string& fmt, bool printFloat, size_t
}
float fArg = *(reinterpret_cast<const float*>(argument));
float fSign = copysign(1.0, fArg);
if (isinf(fArg) && !isnan(fArg)) {
if (std::isinf(fArg) && !std::isnan(fArg)) {
if (fSign < 0) {
amd::Os::printf(fmtF.data(), "-infinity");
} else {
amd::Os::printf(fmtF.data(), "infinity");
}
} else if (isnan(fArg)) {
} else if (std::isnan(fArg)) {
if (fSign < 0) {
amd::Os::printf(fmtF.data(), "-nan");
} else {
+1
Просмотреть файл
@@ -17,6 +17,7 @@
#endif // defined(WITH_LIGHTNING_COMPILER)
#include "utils/options.hpp"
#include <cstdio>
#include <iterator>
#if defined(ATI_OS_LINUX)
#include <dlfcn.h>
+1 -1
Просмотреть файл
@@ -438,7 +438,7 @@ bool Device::init() {
if (!roc_device) {
LogError("Error creating new instance of Device on then heap.");
return HSA_STATUS_ERROR_OUT_OF_RESOURCES;
return false;
}
uint32_t pci_id;
+1
Просмотреть файл
@@ -24,6 +24,7 @@
#include <fstream>
#include <sstream>
#include <iostream>
#include <iterator>
namespace roc {