SWDEV-325711 - Added graph API hipGraphUpload

Change-Id: I7e4c8c997a5ef940000d599ded9d317d62b8826b
Tá an tiomantas seo le fáil i:
Anusha GodavarthySurya tiomanta 2022-11-30 04:40:17 +00:00
1 tuismitheoir 3e47c052e0
tiomantas 596b16da5a
1 comhad athraithe
+6 -1
+6 -1
Féach ar an gComhad
@@ -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);
}