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
rodzic b520a34579
commit 9c3100894c
5 zmienionych plików z 19 dodań i 12 usunięć
@@ -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));
}