Added support for hipMemcpyDefault

Dieser Commit ist enthalten in:
Aditya Atluri
2016-03-03 10:30:06 -06:00
Ursprung 40eefc1cde
Commit c154e1f4e4
2 geänderte Dateien mit 21 neuen und 8 gelöschten Zeilen
+3 -4
Datei anzeigen
@@ -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));
}