From ee978692f5847d603e0f77c03495c7b163a68f4f Mon Sep 17 00:00:00 2001 From: foreman Date: Thu, 1 Sep 2016 12:05:26 -0400 Subject: [PATCH] P4 to Git Change 1309815 by lmoriche@lmoriche_opencl_dev on 2016/09/01 11:55:16 SWDEV-94610 - Restore the amdgpu_metadata.[ch]pp files. We need to share these files between different projects, and should avoid branching them. Ideally, they would be part of a metadata utility library. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/amdgpu_metadata.cpp#1 add ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/amdgpu_metadata.hpp#1 branch ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.cpp#9 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmetadata.cpp#3 delete ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmetadata.hpp#4 delete ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.hpp#11 edit --- .../device/rocm/{rocmetadata.cpp => amdgpu_metadata.cpp} | 4 ++-- .../device/rocm/{rocmetadata.hpp => amdgpu_metadata.hpp} | 0 rocclr/runtime/device/rocm/rockernel.cpp | 2 +- rocclr/runtime/device/rocm/rocprogram.hpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename rocclr/runtime/device/rocm/{rocmetadata.cpp => amdgpu_metadata.cpp} (99%) rename rocclr/runtime/device/rocm/{rocmetadata.hpp => amdgpu_metadata.hpp} (100%) diff --git a/rocclr/runtime/device/rocm/rocmetadata.cpp b/rocclr/runtime/device/rocm/amdgpu_metadata.cpp similarity index 99% rename from rocclr/runtime/device/rocm/rocmetadata.cpp rename to rocclr/runtime/device/rocm/amdgpu_metadata.cpp index 576ed4a780..833a690712 100644 --- a/rocclr/runtime/device/rocm/rocmetadata.cpp +++ b/rocclr/runtime/device/rocm/amdgpu_metadata.cpp @@ -44,7 +44,7 @@ #include #include -#include "rocmetadata.hpp" +#include "amdgpu_metadata.hpp" namespace roc { namespace RuntimeMD { @@ -200,7 +200,7 @@ namespace RuntimeMD { out << " Access: " << AccessQualToString(accQual) - << " Address: " << (uint) addrQual + << " Address: " << (unsigned) addrQual << " Size: " << size << " Align: " << align << " Type Name: " << typeName; diff --git a/rocclr/runtime/device/rocm/rocmetadata.hpp b/rocclr/runtime/device/rocm/amdgpu_metadata.hpp similarity index 100% rename from rocclr/runtime/device/rocm/rocmetadata.hpp rename to rocclr/runtime/device/rocm/amdgpu_metadata.hpp diff --git a/rocclr/runtime/device/rocm/rockernel.cpp b/rocclr/runtime/device/rocm/rockernel.cpp index f15f68a445..87f6da4b6e 100644 --- a/rocclr/runtime/device/rocm/rockernel.cpp +++ b/rocclr/runtime/device/rocm/rockernel.cpp @@ -6,7 +6,7 @@ #include "SCHSAInterface.h" #include "amd_hsa_kernel_code.h" #if defined(WITH_LIGHTNING_COMPILER) -#include "rocmetadata.hpp" +#include "amdgpu_metadata.hpp" #endif // defined(WITH_LIGHTNING_COMPILER) #include diff --git a/rocclr/runtime/device/rocm/rocprogram.hpp b/rocclr/runtime/device/rocm/rocprogram.hpp index 5f28fb85e3..9b7101ae29 100644 --- a/rocclr/runtime/device/rocm/rocprogram.hpp +++ b/rocclr/runtime/device/rocm/rocprogram.hpp @@ -18,7 +18,7 @@ #include "HSAILItems.h" #if defined(WITH_LIGHTNING_COMPILER) -#include "rocmetadata.hpp" +#include "amdgpu_metadata.hpp" #include "driver/AmdCompiler.h" #endif // defined(WITH_LIGHTNING_COMPILER)