SWDEV-327945 - hipGraphInstantiateWithFlags accept 0,1 as valid flag values
Change-Id: I3100a3464d1a47fca5f9da80f42e7dd2035865ad
[ROCm/clr commit: aacfc3ed7d]
This commit is contained in:
zatwierdzone przez
Ajay GunaShekar
rodzic
389d81161b
commit
38a0792ebe
@@ -985,7 +985,7 @@ hipError_t hipGraphInstantiateWithFlags(hipGraphExec_t* pGraphExec, hipGraph_t g
|
||||
}
|
||||
|
||||
//invalid flag check
|
||||
if (flags != hipGraphInstantiateFlagAutoFreeOnLaunch){
|
||||
if (flags != 0 && flags != hipGraphInstantiateFlagAutoFreeOnLaunch) {
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user