From 83d9c2769b1cc3f2379913da7cbce930213f9cf1 Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Mon, 2 Sep 2019 22:13:46 -0700 Subject: [PATCH] Revert "Using HSA API for hipMemsetAsync (#1346)" (#1381) This reverts commit 7dca0455e9351083b45e513d1f36a360e3fbae3f. [ROCm/hip commit: 6545521d6c3089a36cc954f6510a2b60072442fd] --- projects/hip/src/hip_memory.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/projects/hip/src/hip_memory.cpp b/projects/hip/src/hip_memory.cpp index a1455b14cd..2deedbc635 100644 --- a/projects/hip/src/hip_memory.cpp +++ b/projects/hip/src/hip_memory.cpp @@ -1557,13 +1557,6 @@ hipError_t ihipMemPtrGetInfo(void* ptr, size_t* size) { template void ihipMemsetKernel(hipStream_t stream, T* ptr, T val, size_t count) { - // Just Use count, instead of dividing by 4, the calling API already does it - if (sizeof(T) == sizeof(uint32_t) && (count % sizeof(uint32_t) == 0) && - !hsa_amd_memory_fill(ptr, reinterpret_cast(val), count)) { - // Only return if the execution completes without error - // if error occured, try the normal version - return; - } static constexpr uint32_t block_dim = 256; const uint32_t grid_dim = clamp_integer(count / block_dim, 1, UINT32_MAX);