Step1 in staging buffer copy.

- use StagingBuffer class for copies.
- refactor g_device to use array rather than vector.
   (keeps pointers from moving).
This commit is contained in:
Ben Sander committed 2016-02-12 18:24:08 -06:00
1 bovenliggende d7396b5af3
commit 24c1fdb864
6 files changed
+188 -45

No files matched your search

+1 -1
Bestand weergeven
@@ -30,7 +30,7 @@ int main(int argc, char *argv[])
size_t Nbytes = N*sizeof(int);
printf ("N=%zu \n", N);
printf ("N=%zu Nbytes=%6.2fMB\n", N, Nbytes/1024.0/1024.0);
int *A_d, *B_d, *C_d;
int *A_h, *B_h, *C_h;
+1 -1
Bestand weergeven
@@ -88,7 +88,7 @@ int parseStandardArguments(int argc, char *argv[], bool failOnUndefinedArg)
if (!strcmp(arg, " ")) {
// skip NULL args.
} else if (!strcmp(arg, "--N")) {
} else if (!strcmp(arg, "--N") || (!strcmp(arg, "-N"))) {
if (++i >= argc || !HipTest::parseSize(argv[i], &N)) {
failed("Bad N size argument");
}