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.


[ROCm/hip commit: 4ee2a5229b]
This commit is contained in:
Ben Sander
2016-02-10 11:52:42 -06:00
parent 0a6e6e3b7e
commit d4a90f8afd
11 changed files with 743 additions and 11 deletions
+2
View File
@@ -53,6 +53,8 @@ extern int iterations;
extern unsigned blocksPerCU;
extern unsigned threadsPerBlock;
extern int p_gpuDevice;
extern unsigned p_verbose;
extern int p_tests;
namespace HipTest {