gpu-compute: Change certain IOCTL errors to warnings
There are certain IOCTL errors that were triggering with the change to ROCm 4, however they could be set to warnings without causing any errors in the program Change-Id: Ie0052267f3ccfbdbadb90249b6f19e6a1205f57e Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/46247 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Matthew Poremba <matthew.poremba@amd.com> Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com> Maintainer: Matt Sinclair <mattdsinclair@gmail.com>
This commit is contained in:
@@ -417,7 +417,7 @@ GPUComputeDriver::ioctl(ThreadContext *tc, unsigned req, Addr ioc_buf)
|
||||
TypedBufferArg<kfd_ioctl_create_event_args> args(ioc_buf);
|
||||
args.copyIn(virt_proxy);
|
||||
if (args->event_type != KFD_IOC_EVENT_SIGNAL) {
|
||||
fatal("Signal events are only supported currently\n");
|
||||
warn("Signal events are only supported currently\n");
|
||||
} else if (eventSlotIndex == SLOTS_PER_PAGE) {
|
||||
fatal("Signal event wasn't created; signal limit reached\n");
|
||||
}
|
||||
@@ -508,8 +508,8 @@ GPUComputeDriver::ioctl(ThreadContext *tc, unsigned req, Addr ioc_buf)
|
||||
"\tamdkfd wait for event %d\n", EventData->event_id);
|
||||
panic_if(ETable.count(EventData->event_id) == 0,
|
||||
"Event ID invalid, cannot set this event\n");
|
||||
panic_if(ETable[EventData->event_id].threadWaiting,
|
||||
"Multiple threads waiting on the same event\n");
|
||||
if (ETable[EventData->event_id].threadWaiting)
|
||||
warn("Multiple threads waiting on the same event\n");
|
||||
if (ETable[EventData->event_id].setEvent) {
|
||||
// If event is already set, the event has already happened.
|
||||
// Just unset the event and dont put this thread to sleep.
|
||||
|
||||
Reference in New Issue
Block a user