SWDEV-301667 - Enable ROCr logging

- Use AMD_LOG_LEVEL=5 to dump AQL packets in ROCr

Change-Id: I2c044a5304c4eaf3d3af20e62d1f54c98d4fbaa4
This commit is contained in:
Saleel Kudchadker
2024-09-30 18:17:35 +00:00
parent d3d0ca5fc6
commit e36666e536
2 changed files with 14 additions and 1 deletions
+6
View File
@@ -836,6 +836,12 @@ bool Device::create() {
return false;
}
if (AMD_LOG_LEVEL >= LOG_EXTRA_DEBUG) {
uint8_t logMask[8] = { 0 };
hsa_flag_set64(logMask, HSA_AMD_LOG_FLAG_BLIT_KERNEL_PKTS);
hsa_amd_enable_logging(logMask, outFile);
}
return true;
}