Add hipdbPrintMem - wrapper for hcc memory tracker.
[ROCm/clr commit: 18660be8ce]
This commit is contained in:
@@ -179,6 +179,7 @@ if(HIP_PLATFORM STREQUAL "hcc")
|
||||
src/hip_peer.cpp
|
||||
src/hip_stream.cpp
|
||||
src/hip_module.cpp
|
||||
src/hip_db.cpp
|
||||
src/grid_launch.cpp
|
||||
src/env.cpp)
|
||||
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* @defgroup HipDb HCC-specific debug facilities
|
||||
* @{
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @brief * Print memory tracker information for this pointer.
|
||||
*
|
||||
* HIP maintains a table for all memory allocations performed by the application.
|
||||
* If targetAddress is 0, the entire table is printed to stderr.
|
||||
* If targetAddress is non-null, this routine will perform some forensic analysis
|
||||
* to find the pointer
|
||||
*/
|
||||
void hipdbPrintMem(void *targetAddress);
|
||||
|
||||
|
||||
|
||||
// doxygen end HipDb
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
@@ -0,0 +1,12 @@
|
||||
|
||||
#include "hcc/hc_am.hpp"
|
||||
|
||||
|
||||
|
||||
|
||||
void hipdbPrintMem(void *targetAddress)
|
||||
{
|
||||
hc::am_memtracker_print(targetAddress);
|
||||
};
|
||||
|
||||
|
||||
مرجع در شماره جدید
Block a user