From 366c322416c1216b064017297d10f9559b5e889e Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Thu, 13 Oct 2016 18:27:56 -0500 Subject: [PATCH] changed malloc device functions test to work on multiple devices Change-Id: I69ef9002f2f041fef138993aed5a03d4d410a29f --- .../tests/src/kernel/hipTestMallocKernel.cpp | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/hipamd/tests/src/kernel/hipTestMallocKernel.cpp b/hipamd/tests/src/kernel/hipTestMallocKernel.cpp index 37fb719281..efd38b5ad2 100644 --- a/hipamd/tests/src/kernel/hipTestMallocKernel.cpp +++ b/hipamd/tests/src/kernel/hipTestMallocKernel.cpp @@ -21,6 +21,8 @@ THE SOFTWARE. #include #include +#define HIP_ASSERT(status) assert(hipSuccess == status); + #define NUM 1024 #define SIZE NUM * 8 @@ -41,12 +43,18 @@ int main() for(uint32_t i=0;i