From 66bde8f3368d1ced3206c06dc22177c4b60aa8dd Mon Sep 17 00:00:00 2001 From: sdashmiz Date: Thu, 21 Jul 2022 14:08:50 -0400 Subject: [PATCH] SWDEV-346456 - fix test for get/set attr - test should allow first calling get function Signed-off-by: sdashmiz Change-Id: I365cd6210a01fd5ae3620711694bdc52e0f90b19 --- hipamd/src/hip_graph_internal.hpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/hipamd/src/hip_graph_internal.hpp b/hipamd/src/hip_graph_internal.hpp index 65197b0b94..886a7d3a84 100644 --- a/hipamd/src/hip_graph_internal.hpp +++ b/hipamd/src/hip_graph_internal.hpp @@ -690,9 +690,6 @@ class hipGraphKernelNode : public hipGraphNode { hipError_t SetAttrParams(hipKernelNodeAttrID attr, const hipKernelNodeAttrValue* params) { // updates kernel attr params if (attr == hipKernelNodeAttributeAccessPolicyWindow) { - if (params->accessPolicyWindow.base_ptr == NULL) { - return hipErrorInvalidResourceHandle; - } kernelAttr_.accessPolicyWindow.base_ptr = params->accessPolicyWindow.base_ptr; kernelAttr_.accessPolicyWindow.hitProp = params->accessPolicyWindow.hitProp; kernelAttr_.accessPolicyWindow.hitRatio = params->accessPolicyWindow.hitRatio; @@ -707,9 +704,6 @@ class hipGraphKernelNode : public hipGraphNode { hipError_t GetAttrParams(hipKernelNodeAttrID attr, hipKernelNodeAttrValue* params) { // Get kernel attr params if (attr == hipKernelNodeAttributeAccessPolicyWindow) { - if (kernelAttr_.accessPolicyWindow.base_ptr == NULL) { - return hipErrorInvalidResourceHandle; - } params->accessPolicyWindow.base_ptr = kernelAttr_.accessPolicyWindow.base_ptr; params->accessPolicyWindow.hitProp = kernelAttr_.accessPolicyWindow.hitProp; params->accessPolicyWindow.hitRatio = kernelAttr_.accessPolicyWindow.hitRatio;