Create address tracker for am_alloc.

Tracks device where memory is allocated, pinned-host or device, and
more.

Uses memory-range-based lookups - so pointers that exist anywhere in

the range of hostPtr + size will find the associated AmPointerInfo.

The insertions and lookups use a self-balancing binary tree and
should support O(logN) lookup speed.
此提交包含在:
Ben Sander committed 2016-02-12 18:24:08 -06:00
1 父節點 e483eea85b
當前提交 4ee2a5229b
11 file changed
+743 -11

No files matched your search

+1
查看文件
@@ -71,6 +71,7 @@ if ($HIP_PLATFORM eq "hcc") {
$HIPLDFLAGS .= " -L$HSA_PATH/lib -lhsa-runtime64 -lhc_am";
# Add C++ libs for GCC.
$HIPLDFLAGS .= " -lstdc++";
$HIPLDFLAGS .= " -lm";
if ($verbose & 0x2) {
print ("HSA_PATH=$HSA_PATH\n");
+2
查看文件
@@ -277,6 +277,8 @@ while (@ARGV) {
$ft{'mem'} += s/\bcudaMemcpyKind\b/hipMemcpyKind/g;
$ft{'mem'} += s/\bcudaPointerAttributes\b/hipPointerAttribute_t/g;
#--------
# Memory management: