fix nvcc compiler

- MallocHost and FreeHost deprecation.
- Change tests to call new hipHost* equivs.
- Add missing StreamSynchronize.


[ROCm/hip commit: 9941ba0bc6]
This commit is contained in:
Ben Sander
2016-03-19 04:20:10 -05:00
parent b520a34579
commit 9c3100894c
5 changed files with 19 additions and 12 deletions
+3 -3
View File
@@ -193,13 +193,13 @@ void freeArrays(T *A_d, T *B_d, T *C_d,
if (usePinnedHost) {
if (A_h) {
HIPCHECK (hipFreeHost(A_h));
HIPCHECK (hipHostFree(A_h));
}
if (B_h) {
HIPCHECK (hipFreeHost(B_h));
HIPCHECK (hipHostFree(B_h));
}
if (C_h) {
HIPCHECK (hipFreeHost(C_h));
HIPCHECK (hipHostFree(C_h));
}
} else {
if (A_h) {