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.
Bu işleme şunda yer alıyor:
Ben Sander
2016-02-10 11:52:42 -06:00
ebeveyn e483eea85b
işleme 4ee2a5229b
11 değiştirilmiş dosya ile 743 ekleme ve 11 silme
+12 -2
Dosyayı Görüntüle
@@ -28,6 +28,8 @@ int iterations = 1;
unsigned blocksPerCU = 6; // to hide latency
unsigned threadsPerBlock = 256;
int p_gpuDevice = 0;
unsigned p_verbose = 0;
int p_tests = -1; /*which tests to run. Interpretation is left to each test. default:all*/
@@ -114,8 +116,16 @@ int parseStandardArguments(int argc, char *argv[], bool failOnUndefinedArg)
failed("Bad gpuDevice argument");
}
}
else {
} else if (!strcmp(arg, "--verbose") || (!strcmp(arg, "-v"))) {
if (++i >= argc || !HipTest::parseUInt(argv[i], &p_verbose)) {
failed("Bad verbose argument");
}
} else if (!strcmp(arg, "--tests") || (!strcmp(arg, "-t"))) {
if (++i >= argc || !HipTest::parseInt(argv[i], &p_tests)) {
failed("Bad tests argument");
}
} else {
if (failOnUndefinedArg) {
failed("Bad argument '%s'", arg);
} else {