Add HIP_DB=fatbin for debugging fat binary issues

[ROCm/hip commit: 1299b65e15]
Este commit está contenido en:
Yaxun Sam Liu
2018-08-17 11:33:11 -04:00
padre ae41c374fe
commit 86b18a66ef
Se han modificado 3 ficheros con 6 adiciones y 2 borrados
+2
Ver fichero
@@ -58,6 +58,7 @@ __hipRegisterFatBinary(const void* data)
{
HIP_INIT();
tprintf(DB_FB, "Enter __hipRegisterFatBinary(%p)\n", data);
const __CudaFatBinaryWrapper* fbwrapper = reinterpret_cast<const __CudaFatBinaryWrapper*>(data);
if (fbwrapper->magic != __hipFatMAGIC2 || fbwrapper->version != 1) {
return nullptr;
@@ -113,6 +114,7 @@ __hipRegisterFatBinary(const void* data)
}
}
tprintf(DB_FB, "__hipRegisterFatBinary succeeds and returns %p\n", modules);
return modules;
}