From 3d377b70a439b221228cb78433fb40d5ae02dd3d Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 21 Mar 2019 12:43:25 -0400
Subject: [PATCH] P4 to Git Change 1759609 by kjayapra@1_HIPWS_SL_IPC on
2019/03/21 12:09:27
SWDEV-144570 - Disbaling __hipHostRegister implementation to unblock pytorch tests in PAL.
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#24 edit
[ROCm/hip commit: eb852bdb53ba79e2b0c511ffbf642ddbb9d447f0]
---
projects/hip/api/hip/hip_platform.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/projects/hip/api/hip/hip_platform.cpp b/projects/hip/api/hip/hip_platform.cpp
index efc8caffa6..09143adcf3 100644
--- a/projects/hip/api/hip/hip_platform.cpp
+++ b/projects/hip/api/hip/hip_platform.cpp
@@ -240,6 +240,7 @@ extern "C" void __hipRegisterVar(
int constant, // Whether this variable is constant
int global) // Unknown, always 0
{
+#if 0
HIP_INIT();
size_t sym_size = 0;
@@ -262,6 +263,7 @@ extern "C" void __hipRegisterVar(
}
PlatformState::instance().registerVar(hostVar, global_vars);
+#endif
}
extern "C" void __hipUnregisterFatBinary(std::vector* modules)