From 86cab131cf45bef680bfa25377ab69981c1fe3d7 Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 31 May 2018 14:55:04 -0400
Subject: [PATCH] P4 to Git Change 1562330 by gandryey@gera-w8 on 2018/05/31
14:48:10
SWDEV-79445 - OCL generic changes and code clean-up
- Restore reatain/release methods in the device object, removed in CL#1398097. There is a crash in the old SHOC11_DeviceMemory test on TC.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#305 edit
[ROCm/clr commit: 97223251caa5c88b91a3c0cf88c52e70844bac63]
---
projects/clr/rocclr/runtime/device/device.hpp | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/projects/clr/rocclr/runtime/device/device.hpp b/projects/clr/rocclr/runtime/device/device.hpp
index a9fa1635a6..d6a18ff451 100644
--- a/projects/clr/rocclr/runtime/device/device.hpp
+++ b/projects/clr/rocclr/runtime/device/device.hpp
@@ -1417,6 +1417,18 @@ class Device : public RuntimeObject {
//! Initializes abstraction layer device object
bool create();
+ uint retain() {
+ // Overwrite the RuntimeObject::retain().
+ // There is an issue in the old SHOC11_DeviceMemory test on TC
+ return 0u;
+ }
+
+ uint release() {
+ // Overwrite the RuntimeObject::release().
+ // There is an issue in the old SHOC11_DeviceMemory test on TC
+ return 0u;
+ }
+
//! Register a device as available
void registerDevice();