From 450bcbf52c31482ae92406f5d7a62e8227c5b90b Mon Sep 17 00:00:00 2001 From: Andrzej Janik Date: Thu, 25 Sep 2025 23:07:00 +0000 Subject: [PATCH] Reverse zeroing in host_alloc --- zluda/src/impl/memory.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/zluda/src/impl/memory.rs b/zluda/src/impl/memory.rs index 7e9a1b8..4b33460 100644 --- a/zluda/src/impl/memory.rs +++ b/zluda/src/impl/memory.rs @@ -70,7 +70,6 @@ pub(crate) unsafe fn host_alloc( ) -> CUresult { let context = context::get_current_context()?; hipHostMalloc(pp, bytesize, flags)?; - unsafe { hipMemsetD8(hipDeviceptr_t(*pp), 0, bytesize) }?; add_allocation(*pp, bytesize, context)?; Ok(()) }