From 9668003fe320348e5815e6a452f82686d085c980 Mon Sep 17 00:00:00 2001 From: Alex Voicu Date: Tue, 28 Nov 2017 19:45:47 +0000 Subject: [PATCH] Change memset kernel to use memcpy instead of placement new. Simplify indexers. [ROCm/hip commit: 6e4ca3fbb4b8b4057ff9a636ffd2f1989126d097] --- projects/hip/include/hip/hcc_detail/hip_runtime.h | 15 +++------------ projects/hip/src/hip_memory.cpp | 5 ++++- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/projects/hip/include/hip/hcc_detail/hip_runtime.h b/projects/hip/include/hip/hcc_detail/hip_runtime.h index c2302d4dc1..924e774af0 100644 --- a/projects/hip/include/hip/hcc_detail/hip_runtime.h +++ b/projects/hip/include/hip/hcc_detail/hip_runtime.h @@ -389,18 +389,9 @@ template(&f[idx]), + reinterpret_cast(&value), + sizeof(T)); idx += grid_dim; } }