SWDEV-301667 - Create TS for each node recorded in graph
- Create a vector to allow multiple TS to be stored in Command.
- This would mean we dont wait for entire batch in Accumulate command
to finish when we exhaust signals.
- Reduce the number of signals created at init to 64. This min value
may still need to be tuned but the KFD allows max of 4094 interrupt
signals per device.
- Store kernel names whenever they are available and not just when
profiling. If we dynamically enable profiling like for Torch, a crash
can happen if hipGraphInstantiate wasnt included in Torch profile scope
beacuse we previously entered kernel names only when profiler is
attached.
Change-Id: I34e7881a25bbc763f82fdeb3408a8ea58e1ec006
[ROCm/clr commit: c157bfb202]
This commit is contained in:
@@ -769,7 +769,7 @@ RUNTIME_ENTRY_RET(cl_event, clCreateEventFromGLsyncKHR,
|
||||
// initially set the status of fence as queued
|
||||
clglEvent->setStatus(CL_SUBMITTED);
|
||||
// store GLsync id of the fence in event in order to associate them together
|
||||
clglEvent->setData(clGLsync);
|
||||
clglEvent->data().emplace_back(clGLsync);
|
||||
amd::Event* evt = clglEvent;
|
||||
evt->retain();
|
||||
*not_null(errcode_ret) = CL_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user