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.
Tá an tiomantas seo le fáil i:
Ben Sander tiomanta 2016-02-12 18:24:08 -06:00
1 tuismitheoir e483eea85b
tiomantas 4ee2a5229b
11 comhad athraithe
+743 -11

Níor tháinig aon chomhaid le do chuardach

+1
Féach ar an gComhad
@@ -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
Féach ar an gComhad
@@ -277,6 +277,8 @@ while (@ARGV) {
$ft{'mem'} += s/\bcudaMemcpyKind\b/hipMemcpyKind/g;
$ft{'mem'} += s/\bcudaPointerAttributes\b/hipPointerAttribute_t/g;
#--------
# Memory management: