fix nvcc compiler

- MallocHost and FreeHost deprecation.
- Change tests to call new hipHost* equivs.
- Add missing StreamSynchronize.
This commit is contained in:
Ben Sander
2016-03-19 04:20:10 -05:00
parent 194d02ac5a
commit 9941ba0bc6
5 changed files with 19 additions and 12 deletions
+2 -2
View File
@@ -97,8 +97,8 @@ void simpleTest2(size_t numElements, bool usePinnedHost)
HIPCHECK(hipFree(A_d));
if (usePinnedHost) {
HIPCHECK(hipFreeHost(A_h1));
HIPCHECK(hipFreeHost(A_h2));
HIPCHECK(hipHostFree(A_h1));
HIPCHECK(hipHostFree(A_h2));
} else {
free(A_h1);
free(A_h2);