From e461d71afa83f9f14ddd4f8301fa186b0dd46111 Mon Sep 17 00:00:00 2001 From: foreman Date: Thu, 7 Mar 2019 17:24:23 -0500 Subject: [PATCH] P4 to Git Change 1753099 by cpaquot@cpaquot-ocl-lc-lnx on 2019/03/07 16:43:54 SWDEV-145570 - [HIP] Change IS_HIP into a dynamic variable set by HIP layer Affected files ... ... //depot/stg/opencl/drivers/opencl/api/hip/hip_context.cpp#16 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#127 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#69 edit ... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.cpp#18 edit ... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#303 edit ... //depot/stg/opencl/drivers/opencl/runtime/utils/macros.hpp#11 edit --- api/hip/hip_context.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/hip/hip_context.cpp b/api/hip/hip_context.cpp index 7d7fdb6743..94699fa38d 100644 --- a/api/hip/hip_context.cpp +++ b/api/hip/hip_context.cpp @@ -23,6 +23,7 @@ THE SOFTWARE. #include #include "hip_internal.hpp" #include "platform/runtime.hpp" +#include "utils/flags.hpp" #include "utils/versions.hpp" std::vector g_devices; @@ -38,6 +39,7 @@ std::map g_nullStreams; void init() { if (!amd::Runtime::initialized()) { + amd::IS_HIP = true; amd::Runtime::init(); }