Add HIP_TRACE_API=4. Only display memory allocation/free apis.

[ROCm/hip commit: 0edab14139]
This commit is contained in:
Ben Sander
2017-01-27 11:21:08 -06:00
parent dce8786e26
commit 2cf05ad54b
5 changed files with 39 additions and 31 deletions
@@ -267,6 +267,11 @@ info: check result
PASSED!
```
HIP_TRACE_API supports multiple levels of debug information:
- 0x1 = print all HIP APIs
- 0x2 = print HIP APIs which initiate GPU kernels, copies, or memsets. Includes hipLaunchKernel, hipMemcpy*, hipMemset*.
- 0x4 = print HIP APIs which allocate or free memory. Includes hipMalloc, hipHostMalloc, hipFree, hipHostFree.
#### Color
Note this trace mode uses colors. "less -r" can handle raw control characters and will display the debug output in proper colors.