Deprecating hipMallocHost to hipHostAlloc
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user