SWDEV-379125 - Check only if there is attr set for graph kernel node.
Change-Id: I8768b33ad27e75eb753d99d682edf60b31b240df
Αυτή η υποβολή περιλαμβάνεται σε:
@@ -942,7 +942,7 @@ class hipGraphKernelNode : public hipGraphNode {
|
||||
}
|
||||
hipError_t GetAttrParams(hipKernelNodeAttrID attr, hipKernelNodeAttrValue* params) {
|
||||
// Get kernel attr params
|
||||
if (kernelAttrInUse_ != attr) return hipErrorInvalidValue;
|
||||
if (kernelAttrInUse_ != 0 && kernelAttrInUse_ != attr) return hipErrorInvalidValue;
|
||||
if (attr == hipKernelNodeAttributeAccessPolicyWindow) {
|
||||
params->accessPolicyWindow.base_ptr = kernelAttr_.accessPolicyWindow.base_ptr;
|
||||
params->accessPolicyWindow.hitProp = kernelAttr_.accessPolicyWindow.hitProp;
|
||||
|
||||
Αναφορά σε νέο ζήτημα
Block a user