Add debugging checks for packet type in the scratch handler.
Change-Id: I84a6f18548ac39349595e3a1c8a5a9ff27d4e178
[ROCm/ROCR-Runtime commit: bd59789f0b]
Ta zmiana jest zawarta w:
%! (template.HTML=
Sean Keely)złożyło 2021-06-07 15:36:18 -04:00
1 rodzic
67029106d9
złożenie
c35562e45b
Plik 1 zmieniony
+4
@@ -782,6 +782,10 @@ bool AqlQueue::DynamicScratchHandler(hsa_signal_value_t error_code, void* arg) {
|
||||
core::AqlPacket& pkt =
|
||||
((core::AqlPacket*)queue->amd_queue_.hsa_queue.base_address)[pkt_slot_idx];
|
||||
|
||||
assert(pkt.IsValid() && "Invalid packet in dynamic scratch handler.");
|
||||
assert(pkt.type() == HSA_PACKET_TYPE_KERNEL_DISPATCH &&
|
||||
"Invalid packet in dynamic scratch handler.");
|
||||
|
||||
uint32_t scratch_request = pkt.dispatch.private_segment_size;
|
||||
|
||||
const uint32_t MaxScratchSlots =
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika