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

这个提交包含在:
Ben Sander 于 2017-05-16 19:04:25 -05:00 提交
1 父节点 30000ef130
当前提交 0edab14139
5 个文件已更改
+39 -31

没有与搜索条件相匹配的文件

+5
查看文件
@@ -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.