SWDEV-334150 - Force callback to cycle commands

Enqueue a handler callback for hipEventRecords(aka marker_ts_) for every
64 submits, This recycles the memory if we dont end up calling
synchronize for the longest time.

Change-Id: I3d39fe76d52a5d81387927edd85b5663b563682c


[ROCm/clr commit: fa76f03654]
이 커밋은 다음에 포함됨:
Saleel Kudchadker
2022-04-27 11:13:41 -07:00
부모 d5bc650de9
커밋 29752a2bbc
3개의 변경된 파일과 23개의 추가작업 그리고 2개의 파일을 삭제
+2 -1
파일 보기
@@ -40,7 +40,8 @@ HostQueue::HostQueue(Context& context, Device& device, cl_command_queue_properti
lastEnqueueCommand_(nullptr),
head_(nullptr),
tail_(nullptr),
isActive_(false) {
isActive_(false),
markerTsCount_(0) {
if (AMD_DIRECT_DISPATCH) {
// Initialize the queue
thread_.Init(this);