From 5632ebd2758e965feea95041c46b762894a7d47e Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 27 Aug 2015 08:40:14 -0400
Subject: [PATCH] P4 to Git Change 1185139 by
fdaniil@spb_fdaniil_amd_hsa_brigvar_test on 2015/08/27 08:31:20
ECR #304775 - prepare to build with MSVC 18, part 3:
changes in runtime/ugl
testing done: smoke, precheckin
reviewers: German Andryeyev, Bart Crane
http://ocltc.amd.com/reviews/r/8338/
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/cpu/cpucommand.cpp#65 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/cpu/cpudevice.cpp#274 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/cpu/cpumapping.cpp#4 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/cpu/cpumapping.hpp#3 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/cpu/cpuvirtual.cpp#25 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#183 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpublit.cpp#116 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#521 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#295 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprintf.cpp#37 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.cpp#204 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#375 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/hsa/hsadevice.cpp#93 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/hsa/hsakernel.cpp#26 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/hsa_foundation/hsadevice.cpp#37 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/hsa_foundation/hsakernel.cpp#9 edit
... //depot/stg/opencl/drivers/opencl/runtime/os/os_posix.cpp#40 edit
... //depot/stg/opencl/drivers/opencl/runtime/os/os_win32.cpp#45 edit
---
rocclr/runtime/device/cpu/cpucommand.cpp | 1 +
rocclr/runtime/device/cpu/cpudevice.cpp | 2 ++
rocclr/runtime/device/cpu/cpumapping.cpp | 2 ++
rocclr/runtime/device/cpu/cpumapping.hpp | 3 ---
rocclr/runtime/device/cpu/cpuvirtual.cpp | 1 +
rocclr/runtime/device/device.cpp | 1 +
rocclr/runtime/device/gpu/gpublit.cpp | 1 +
rocclr/runtime/device/gpu/gpudevice.cpp | 1 +
rocclr/runtime/device/gpu/gpukernel.cpp | 1 +
rocclr/runtime/device/gpu/gpuprintf.cpp | 1 +
rocclr/runtime/device/gpu/gpuprogram.cpp | 1 +
rocclr/runtime/device/gpu/gpuvirtual.cpp | 1 +
rocclr/runtime/device/hsa/hsadevice.cpp | 1 +
rocclr/runtime/device/hsa/hsakernel.cpp | 2 ++
rocclr/runtime/os/os_posix.cpp | 1 +
rocclr/runtime/os/os_win32.cpp | 1 +
16 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/rocclr/runtime/device/cpu/cpucommand.cpp b/rocclr/runtime/device/cpu/cpucommand.cpp
index 2ef12af280..e8c3488b8c 100644
--- a/rocclr/runtime/device/cpu/cpucommand.cpp
+++ b/rocclr/runtime/device/cpu/cpucommand.cpp
@@ -17,6 +17,7 @@
#include "utils/options.hpp"
#include
+#include
namespace cpu {
diff --git a/rocclr/runtime/device/cpu/cpudevice.cpp b/rocclr/runtime/device/cpu/cpudevice.cpp
index fe1ee198bd..2e4a575c13 100644
--- a/rocclr/runtime/device/cpu/cpudevice.cpp
+++ b/rocclr/runtime/device/cpu/cpudevice.cpp
@@ -12,6 +12,8 @@
#include
#include
#include
+#include
+
#if defined(__linux__)
#if !defined(ATI_ARCH_ARM)
#include
diff --git a/rocclr/runtime/device/cpu/cpumapping.cpp b/rocclr/runtime/device/cpu/cpumapping.cpp
index 1ee5092f24..1d46f355b9 100644
--- a/rocclr/runtime/device/cpu/cpumapping.cpp
+++ b/rocclr/runtime/device/cpu/cpumapping.cpp
@@ -11,6 +11,8 @@
#include
#include
#include
+#include
+
#if defined(_WIN32)
#include
#endif
diff --git a/rocclr/runtime/device/cpu/cpumapping.hpp b/rocclr/runtime/device/cpu/cpumapping.hpp
index 263d22a63e..0ea5d2f350 100644
--- a/rocclr/runtime/device/cpu/cpumapping.hpp
+++ b/rocclr/runtime/device/cpu/cpumapping.hpp
@@ -7,9 +7,6 @@
#ifndef CPUMAPPING_HPP_
#define CPUMAPPING_HPP_
-using std::min;
-using std::max;
-
namespace cpu {
class HCtoDCmap
diff --git a/rocclr/runtime/device/cpu/cpuvirtual.cpp b/rocclr/runtime/device/cpu/cpuvirtual.cpp
index c8df4a7806..0f94cbbb24 100644
--- a/rocclr/runtime/device/cpu/cpuvirtual.cpp
+++ b/rocclr/runtime/device/cpu/cpuvirtual.cpp
@@ -11,6 +11,7 @@
#include "platform/memory.hpp"
#include "platform/sampler.hpp"
#include "os/os.hpp"
+#include
namespace cpu {
diff --git a/rocclr/runtime/device/device.cpp b/rocclr/runtime/device/device.cpp
index 8829f6c170..ba952f6155 100644
--- a/rocclr/runtime/device/device.cpp
+++ b/rocclr/runtime/device/device.cpp
@@ -42,6 +42,7 @@ extern void DeviceUnload();
#include
#include
#include
+#include
diff --git a/rocclr/runtime/device/gpu/gpublit.cpp b/rocclr/runtime/device/gpu/gpublit.cpp
index d5116992de..35fe409b65 100644
--- a/rocclr/runtime/device/gpu/gpublit.cpp
+++ b/rocclr/runtime/device/gpu/gpublit.cpp
@@ -8,6 +8,7 @@
#include "device/gpu/gpumemory.hpp"
#include "device/gpu/gpuvirtual.hpp"
#include "utils/debug.hpp"
+#include
namespace gpu {
diff --git a/rocclr/runtime/device/gpu/gpudevice.cpp b/rocclr/runtime/device/gpu/gpudevice.cpp
index b48d497bc0..08c5e5c4ae 100644
--- a/rocclr/runtime/device/gpu/gpudevice.cpp
+++ b/rocclr/runtime/device/gpu/gpudevice.cpp
@@ -37,6 +37,7 @@
#include
#include
#include
+#include
#include "gpudebugmanager.hpp"
diff --git a/rocclr/runtime/device/gpu/gpukernel.cpp b/rocclr/runtime/device/gpu/gpukernel.cpp
index 01b65d18c1..41694e2d8e 100644
--- a/rocclr/runtime/device/gpu/gpukernel.cpp
+++ b/rocclr/runtime/device/gpu/gpukernel.cpp
@@ -20,6 +20,7 @@
#include
#include
#include
+#include
namespace gpu {
diff --git a/rocclr/runtime/device/gpu/gpuprintf.cpp b/rocclr/runtime/device/gpu/gpuprintf.cpp
index bcfb17fa32..3cfb87bf72 100644
--- a/rocclr/runtime/device/gpu/gpuprintf.cpp
+++ b/rocclr/runtime/device/gpu/gpuprintf.cpp
@@ -11,6 +11,7 @@
#include "device/gpu/gpuprogram.hpp"
#include "device/gpu/gpuprintf.hpp"
#include
+#include
#include
namespace gpu {
diff --git a/rocclr/runtime/device/gpu/gpuprogram.cpp b/rocclr/runtime/device/gpu/gpuprogram.cpp
index 888bd0afcb..f34b6d6d8e 100644
--- a/rocclr/runtime/device/gpu/gpuprogram.cpp
+++ b/rocclr/runtime/device/gpu/gpuprogram.cpp
@@ -14,6 +14,7 @@
#include
#include
#include
+#include
#include "utils/options.hpp"
#include "hsa.h"
#include "hsa_ext_image.h"
diff --git a/rocclr/runtime/device/gpu/gpuvirtual.cpp b/rocclr/runtime/device/gpu/gpuvirtual.cpp
index 7002d5c196..1d58a32ec8 100644
--- a/rocclr/runtime/device/gpu/gpuvirtual.cpp
+++ b/rocclr/runtime/device/gpu/gpuvirtual.cpp
@@ -21,6 +21,7 @@
#include "amd_hsa_queue.h"
#include
#include
+#include
#ifdef _WIN32
#include
diff --git a/rocclr/runtime/device/hsa/hsadevice.cpp b/rocclr/runtime/device/hsa/hsadevice.cpp
index 0297f75db6..5525619e1e 100644
--- a/rocclr/runtime/device/hsa/hsadevice.cpp
+++ b/rocclr/runtime/device/hsa/hsadevice.cpp
@@ -44,6 +44,7 @@
#include
#include
#include
+#include
#endif // WITHOUT_FSA_BACKEND
const HsaCoreApiTable *hsacoreapi = NULL;
diff --git a/rocclr/runtime/device/hsa/hsakernel.cpp b/rocclr/runtime/device/hsa/hsakernel.cpp
index eae1809f54..844d28f646 100644
--- a/rocclr/runtime/device/hsa/hsakernel.cpp
+++ b/rocclr/runtime/device/hsa/hsakernel.cpp
@@ -6,6 +6,8 @@
#include "device/hsa/oclhsa_common.hpp"
+#include
+
#ifndef WITHOUT_FSA_BACKEND
namespace oclhsa {
diff --git a/rocclr/runtime/os/os_posix.cpp b/rocclr/runtime/os/os_posix.cpp
index 9cc5a76d2f..e7b6a9905f 100644
--- a/rocclr/runtime/os/os_posix.cpp
+++ b/rocclr/runtime/os/os_posix.cpp
@@ -41,6 +41,7 @@
#include // for tempnam
#include
#include
+#include
diff --git a/rocclr/runtime/os/os_win32.cpp b/rocclr/runtime/os/os_win32.cpp
index 8983b6a1d9..bea0efac62 100644
--- a/rocclr/runtime/os/os_win32.cpp
+++ b/rocclr/runtime/os/os_win32.cpp
@@ -17,6 +17,7 @@
#include
#include
#include
+#include
#ifndef WINAPI
#define WINAPI