SWDEV-314665 - hipGraphInstantiateWithFlags negative scenarios
Change-Id: Ic44333332a98a525a07c9911bda1c2e930eb9e3c
这个提交包含在:
@@ -934,6 +934,15 @@ hipError_t hipGraphInstantiate(hipGraphExec_t* pGraphExec, hipGraph_t graph,
|
||||
hipError_t hipGraphInstantiateWithFlags(hipGraphExec_t* pGraphExec, hipGraph_t graph,
|
||||
unsigned long long flags) {
|
||||
HIP_INIT_API(hipGraphInstantiateWithFlags, pGraphExec, graph, flags);
|
||||
if (pGraphExec == nullptr || graph == nullptr) {
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
}
|
||||
|
||||
//invalid flag check
|
||||
if (flags != hipGraphInstantiateFlagAutoFreeOnLaunch){
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
}
|
||||
|
||||
// enable when change is merged to hip
|
||||
// if (flags == hipGraphInstantiateFlagAutoFreeOnLaunch) {
|
||||
// Free any unfreed memory allocations before the graph is relaunched
|
||||
|
||||
在新工单中引用
屏蔽一个用户