SWDEV-325711 - Added graph API hipGraphUpload

Change-Id: I7e4c8c997a5ef940000d599ded9d317d62b8826b
This commit is contained in:
Anusha GodavarthySurya
2022-11-30 04:35:01 +00:00
parent 3e47c052e0
commit 596b16da5a
+6 -1
View File
@@ -2200,5 +2200,10 @@ hipError_t hipGraphNodeGetEnabled(hipGraphExec_t hGraphExec, hipGraphNode_t hNod
hipError_t hipGraphUpload(hipGraphExec_t graphExec, hipStream_t stream) {
HIP_INIT_API(hipGraphUpload, graphExec, stream);
HIP_RETURN(hipErrorNotSupported);
if (graphExec == nullptr || !hip::isValid(stream)) {
HIP_RETURN(hipErrorInvalidValue);
}
// TODO: stream is known before launch, do preperatory work with graph optimizations. pre-allocate
// memory for memAlloc nodes if any when support is added with mempool feature
HIP_RETURN(hipSuccess);
}