SWDEV-445013 - During CaptureAQLPackets correct sentinal value to copy integer size bytes

Read and write int bytes sentinal value to dev_ptr or PCIE connected devices at the tail end of the kernarg surface.

Change-Id: I993d552ac872b3cd56aef4746c4d1d92c58d38b4


[ROCm/clr commit: 853abeb75e]
Этот коммит содержится в:
Anusha GodavarthySurya
2024-02-12 07:45:04 +00:00
родитель eb5d8d2647
Коммит 2c045d12ee
+3 -4
Просмотреть файл
@@ -413,9 +413,9 @@ hipError_t GraphExec::CaptureAQLPackets() {
// This needs to be done for PCIE connected devices only. HDP path is disabled for XGMI
// between CPU<->GPU
if (!device->isXgmi()) {
static int host_val = 1;
int host_val = 1;
address dev_ptr = kernarg_pool_graph_ + kernarg_pool_size_graph_ - sizeof(int);
*dev_ptr = host_val;
*(reinterpret_cast<int*>(dev_ptr)) = host_val;
if (device->info().hdpMemFlushCntl == nullptr) {
amd::Command* command = new amd::Marker(*capture_stream_, true);
if (command != nullptr) {
@@ -425,8 +425,7 @@ hipError_t GraphExec::CaptureAQLPackets() {
} else {
*device->info().hdpMemFlushCntl = 1;
}
while (*dev_ptr != host_val);
host_val++;
if (*(reinterpret_cast<volatile int*>(dev_ptr)) != host_val);
}
}
ResetQueueIndex();