From 4c8ef11012679225688749ea56590de7fd372c6b Mon Sep 17 00:00:00 2001 From: foreman Date: Tue, 13 Aug 2019 16:58:45 -0400 Subject: [PATCH] P4 to Git Change 1982690 by yaxunl@yaxunl-lc10 on 2019/08/13 16:57:00 SWDEV-145570 - Rename OCL_DUMP_CODE_OBJECT to GPU_DUMP_CODE_OBJECT. Since this is used by both OCL and HIP. Rename to avoid confusion. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#59 edit ... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#315 edit --- rocclr/runtime/device/devprogram.cpp | 2 +- rocclr/runtime/utils/flags.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rocclr/runtime/device/devprogram.cpp b/rocclr/runtime/device/devprogram.cpp index b40c0a96bd..2e6b7283f7 100644 --- a/rocclr/runtime/device/devprogram.cpp +++ b/rocclr/runtime/device/devprogram.cpp @@ -1440,7 +1440,7 @@ bool Program::linkImplLC(amd::option::Options* options) { case ACL_TYPE_ISA: { amd::Comgr::destroy_data_set(inputs); binary_t isaBinary = binary(); - if (OCL_DUMP_CODE_OBJECT) { + if (GPU_DUMP_CODE_OBJECT) { dumpCodeObject(std::string{(const char*)isaBinary.first, isaBinary.second}); } return setKernels(options, const_cast(isaBinary.first), isaBinary.second); diff --git a/rocclr/runtime/utils/flags.hpp b/rocclr/runtime/utils/flags.hpp index 549ee5a54b..81a7bcb3af 100644 --- a/rocclr/runtime/utils/flags.hpp +++ b/rocclr/runtime/utils/flags.hpp @@ -187,8 +187,8 @@ release(cstring, CUDA_VISIBLE_DEVICES, "", \ "Only devices whose index is present in the sequence are visible to HIP") \ release(bool, GPU_ENABLE_WGP_MODE, true, \ "Enables WGP Mode in HW if available") \ -release(bool, OCL_DUMP_CODE_OBJECT, false, \ - "Enable dump code object") \ +release(bool, GPU_DUMP_CODE_OBJECT, false, \ + "Enable dump code object") \ release(uint, GPU_MAX_USWC_ALLOC_SIZE, 2048, \ "Set a limit in Mb on the maximum USWC allocation size" \ "-1 = No limit")