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
+3 -3
View File
@@ -159,7 +159,7 @@ void test_pingpong(hipStream_t stream, size_t numElements, int numInflight, int
}
HIPCHECK(hipFreeHost(A_h));
HIPCHECK(hipHostFree(A_h));
HIPCHECK(hipFree(A_d));
}
@@ -216,8 +216,8 @@ void test_manyInflightCopies(hipStream_t stream, int numElements, int numCopies,
}
HIPCHECK(hipFreeHost(A_h1));
HIPCHECK(hipFreeHost(A_h2));
HIPCHECK(hipHostFree(A_h1));
HIPCHECK(hipHostFree(A_h2));
HIPCHECK(hipFree(A_d));
}