Deprecating hipMallocHost to hipHostAlloc

This commit is contained in:
Aditya Atluri
2016-03-15 06:30:16 -05:00
parent e1617b9604
commit cbdc8c277c
7 changed files with 46 additions and 46 deletions
+2 -2
View File
@@ -67,8 +67,8 @@ void simpleTest2(size_t numElements, bool usePinnedHost)
T *A_d, *A_h1, *A_h2;
if (usePinnedHost) {
HIPCHECK ( hipMallocHost(&A_h1, sizeElements) );
HIPCHECK ( hipMallocHost(&A_h2, sizeElements) );
HIPCHECK ( hipHostAlloc((void**)&A_h1, sizeElements, hipHostAllocDefault) );
HIPCHECK ( hipHostAlloc((void**)&A_h2, sizeElements, hipHostAllocDefault) );
} else {
A_h1 = (T*)malloc(sizeElements);
A_h2 = (T*)malloc(sizeElements);