From 0755f1fc26850c2f0efec0ad386dcff2ecf621bc Mon Sep 17 00:00:00 2001 From: Alex Voicu Date: Tue, 21 Nov 2017 17:52:01 +0000 Subject: [PATCH] Modify the set component of the memcpy test (unclear why there is a memset component to begin with). --- hipamd/tests/src/deviceLib/hipDeviceMemcpy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipamd/tests/src/deviceLib/hipDeviceMemcpy.cpp b/hipamd/tests/src/deviceLib/hipDeviceMemcpy.cpp index 46656a434c..e845ae8f2f 100644 --- a/hipamd/tests/src/deviceLib/hipDeviceMemcpy.cpp +++ b/hipamd/tests/src/deviceLib/hipDeviceMemcpy.cpp @@ -23,7 +23,7 @@ __global__ void cpy(hipLaunchParm lp, uint32_t *Out, uint32_t *In) __global__ void set(hipLaunchParm lp, uint32_t *ptr, uint8_t val, size_t size) { int tx = threadIdx.x; - memset(ptr + tx, val, (sizeof(uint32_t)*(size/LEN))); + memset(ptr + tx, val, sizeof(uint32_t)); } int main()