Add HIP_DB=fatbin for debugging fat binary issues

This commit is contained in:
Yaxun Sam Liu
2018-08-17 11:33:11 -04:00
parent c9af0d6c52
commit ce13c2061a
3 changed files with 6 additions and 2 deletions
+2
View File
@@ -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;
}