From 12e1a86ec11910a3ef84d5ba7bfe89e1c4e7355b Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Fri, 25 Oct 2019 03:14:05 -0700 Subject: [PATCH] [dtest] Fix hipMemset2D test (#1579) Reverts changes made in #1399. This is a RT api test. For testing hipMemAllocPitch , a new test should be written and that should use correct memset API. --- tests/src/runtimeApi/memory/hipMemset2D.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/src/runtimeApi/memory/hipMemset2D.cpp b/tests/src/runtimeApi/memory/hipMemset2D.cpp index 2eb62a859f..e7fe932b3d 100644 --- a/tests/src/runtimeApi/memory/hipMemset2D.cpp +++ b/tests/src/runtimeApi/memory/hipMemset2D.cpp @@ -45,7 +45,7 @@ bool testhipMemset2D(int memsetval,int p_gpuDevice) char *A_d; char *A_h; bool testResult = true; - HIPCHECK(hipMemAllocPitch((hipDeviceptr_t*)&A_d, &pitch_A, width , numH,16)); + HIPCHECK (hipMallocPitch((void**)&A_d, &pitch_A, width , numH)); A_h = (char*)malloc(sizeElements); HIPASSERT(A_h != NULL); for (size_t i=0; i