Add debug printing statement to packet submission (#212)

* Add debug printing statement to packet submission

Adds debug printing to packets being submitted to HSA Queue in device
counting mode.

* Minor change

* Small fix

* formatting

---------

Co-authored-by: Benjamin Welton <bewelton@amd.com>
Co-authored-by: Kandula, Venkateshwar reddy <Venkateshwarreddy.Kandula@amd.com>

[ROCm/rocprofiler-sdk commit: f7e94c1ee8]
Этот коммит содержится в:
Welton, Benjamin
2025-03-10 14:02:30 -07:00
коммит произвёл GitHub
родитель 6db4554b89
Коммит f621d8a32a
+5
Просмотреть файл
@@ -28,6 +28,7 @@
#include "lib/rocprofiler-sdk/counters/core.hpp"
#include "lib/rocprofiler-sdk/counters/id_decode.hpp"
#include "lib/rocprofiler-sdk/hsa/agent_cache.hpp"
#include "lib/rocprofiler-sdk/hsa/details/fmt.hpp"
#include "lib/rocprofiler-sdk/hsa/hsa.hpp"
#include "lib/rocprofiler-sdk/hsa/queue_controller.hpp"
#include "lib/rocprofiler-sdk/hsa/rocprofiler_packet.hpp"
@@ -82,6 +83,10 @@ submitPacket(hsa_queue_t* queue, const void* packet)
// ringdoor bell
hsa::get_core_table()->hsa_signal_store_relaxed_fn(queue->doorbell_signal, write_idx);
ROCP_TRACE << fmt::format("SLOT_IDX: {} WRITE_IDX: {} PKT: {}",
slot_idx,
write_idx,
*static_cast<const hsa::rocprofiler_packet*>(packet));
return write_idx;
}