From 73ef364c74b8bf2ce68a600bdaeace204ae69509 Mon Sep 17 00:00:00 2001 From: Ben Sander Date: Mon, 23 Jan 2017 22:34:09 -0600 Subject: [PATCH] Add debug tip to docs --- hipamd/docs/markdown/hip_profiling.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hipamd/docs/markdown/hip_profiling.md b/hipamd/docs/markdown/hip_profiling.md index 772f762912..463c9c13b3 100644 --- a/hipamd/docs/markdown/hip_profiling.md +++ b/hipamd/docs/markdown/hip_profiling.md @@ -362,6 +362,12 @@ TargetAddress:0x5ec7e9000 0x504cfc000-0x504cfc00f:: allocSeqNum:1 hostPointer:0x504cfc000 devicePointer:0x504cfc000 sizeBytes:16 isInDeviceMem:0 isAmManaged:1 appId:0 appAllocFlags:0 appPtr:(nil) ... -->0x5ec7e9000-0x5f7e28fff:: allocSeqNum:488 hostPointer:(nil) devicePointer:0x5ec7e9000 sizeBytes:191102976 isInDeviceMem:1 isAmManaged:1 appId:0 appAllocFlags:0 appPtr:(nil) + +``` + +To debug an explicit address, cast the address to (void*) : +``` +(gdb) call hc::am_memtracker_print((void*)0x508c7f000) ``` - Debugging GPUVM fault. For example: