Skip to content

Commit 3985999

Browse files
saiislamDavid Salinas
authored andcommitted
[Offload][AMDGPU] Fix timing issue in hostexec packet processing
The host processing of packets on gfx12 was removing the packets too early from the stack. This sleep instruction fixes the timing and thus pagefaulting issue. Change-Id: I75af63c09c5b00b4c5cc538ea952cb6accb6043b
1 parent fc1c3e0 commit 3985999

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

offload/hostexec/services/amdgcn_hostexec.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ struct consumer_t {
346346
if (flag == 0)
347347
continue;
348348
execute_service(service_id, buffer->device_id, payload->slots[wi]);
349+
std::this_thread::sleep_for(std::chrono::nanoseconds(1));
349350
}
350351
}
351352
__atomic_store_n(&header->control, reset_ready_flag(header->control),

0 commit comments

Comments
 (0)