From 949fbad6e2aa45549616a74715d1c0de85f477ef Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Wed, 7 Jun 2017 15:24:44 +0530 Subject: [PATCH] hipDeviceMemcpy test: make it functional on nvcc path Change-Id: Id10c79b48747ed701adbd0a233c53cd60cfa743b [ROCm/clr commit: a50f5ca0acd1faa1d2c2e4e25c7e0ad5d63a7025] --- projects/clr/hipamd/tests/src/deviceLib/hipDeviceMemcpy.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/clr/hipamd/tests/src/deviceLib/hipDeviceMemcpy.cpp b/projects/clr/hipamd/tests/src/deviceLib/hipDeviceMemcpy.cpp index 3843c07bb9..527df9bab1 100644 --- a/projects/clr/hipamd/tests/src/deviceLib/hipDeviceMemcpy.cpp +++ b/projects/clr/hipamd/tests/src/deviceLib/hipDeviceMemcpy.cpp @@ -4,7 +4,7 @@ #include "../test_common.h" -#define LEN 1030 +#define LEN 1024 #define SIZE LEN << 2 /* HIT_START @@ -17,13 +17,13 @@ __global__ void cpy(hipLaunchParm lp, uint32_t *Out, uint32_t *In) { int tx = hipThreadIdx_x; - memcpy(Out + tx, In + tx, SIZE/LEN); + memcpy(Out + tx, In + tx, sizeof(uint32_t)); } __global__ void set(hipLaunchParm lp, uint32_t *ptr, uint8_t val, size_t size) { int tx = hipThreadIdx_x; - memset(ptr + tx, val, size); + memset(ptr + tx, val, (sizeof(uint32_t)*(size/LEN))); } int main()