mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-09-27 03:39:10 +00:00
Reverse zeroing in host_alloc
This commit is contained in:
parent
70e1126c8e
commit
450bcbf52c
1 changed files with 0 additions and 1 deletions
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue