Added support for hipMemcpyDefault

This commit is contained in:
Aditya Atluri
2016-03-03 10:30:06 -06:00
parent 40eefc1cde
commit c154e1f4e4
2 ha cambiato i file con 21 aggiunte e 8 eliminazioni
+3 -4
Vedi File
@@ -20,8 +20,7 @@ void simpleNegTest()
// Can't use default with async copy
e = hipMemcpyAsync(A_pinned, A_d, Nbytes, hipMemcpyDefault, NULL);
HIPASSERT (e==hipErrorInvalidMemcpyDirection); // TODO
HIPASSERT (e!= hipSuccess);
HIPASSERT (e == hipSuccess);
// Not sure what happens here, the memory must be pinned.
@@ -337,8 +336,8 @@ int main(int argc, char *argv[])
hipStream_t stream;
HIPCHECK (hipStreamCreate(&stream));
test_pingpong<int, Pinned>(stream, 1024*1024*32, 1, 1, false);
test_pingpong<int, Pinned>(stream, 1024*1024*32, 1, 10, false);
// test_pingpong<int, Pinned>(stream, 1024*1024*32, 1, 1, false);
// test_pingpong<int, Pinned>(stream, 1024*1024*32, 1, 10, false);
HIPCHECK(hipStreamDestroy(stream));
}