Reverse zeroing in host_alloc

This commit is contained in:
Andrzej Janik 2025-09-25 23:07:00 +00:00
commit 450bcbf52c

View file

@ -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(())
}