Modify the set component of the memcpy test (unclear why there is a memset component to begin with).

이 커밋은 다음에 포함됨:
Alex Voicu
2017-11-21 17:52:01 +00:00
부모 fb1021cc0a
커밋 0755f1fc26
+1 -1
파일 보기
@@ -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()