SWDEV-351966 - Dispatch table for hip runtime

Change-Id: Ie4a44fa8cf1ff9c152146070bbbf6b0636d4e325


[ROCm/clr commit: 5e21f0c6bd]
This commit is contained in:
Anusha GodavarthySurya authored and Anusha Godavarthy Surya committed 2023-11-22 01:11:19 -05:00
1 bovenliggende cea00f53fb
commit 3bdedf0cc7
37 files changed
+4496 -192

No files matched your search

@@ -26,6 +26,8 @@
#include "hip_event.hpp"
#include "hip_mempool_impl.hpp"
namespace hip {
std::vector<hip::Stream*> g_captureStreams;
amd::Monitor g_captureStreamsLock{"StreamCaptureGlobalList"};
amd::Monitor g_streamSetLock{"StreamCaptureset"};
@@ -2477,7 +2479,7 @@ hipError_t hipGraphRetainUserObject(hipGraph_t graph, hipUserObject_t object, un
HIP_RETURN(hipSuccess);
}
if (flags != hipGraphUserObjectMove) {
status = hipUserObjectRetain(object, count);
status = hip::hipUserObjectRetain(object, count);
if (status != hipSuccess) {
HIP_RETURN(status);
}
@@ -2505,7 +2507,7 @@ hipError_t hipGraphReleaseUserObject(hipGraph_t graph, hipUserObject_t object, u
if (userObject->referenceCount() == releaseCount) {
g->RemoveUserObjGraph(userObject);
}
hipError_t status = hipUserObjectRelease(object, count);
hipError_t status = hip::hipUserObjectRelease(object, count);
HIP_RETURN(status);
}
@@ -2595,3 +2597,4 @@ hipError_t hipGraphUpload(hipGraphExec_t graphExec, hipStream_t stream) {
// memory for memAlloc nodes if any when support is added with mempool feature
HIP_RETURN(hipSuccess);
}
} // namespace hip