mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-09-28 12:19:00 +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 {
|
) -> CUresult {
|
||||||
let context = context::get_current_context()?;
|
let context = context::get_current_context()?;
|
||||||
hipHostMalloc(pp, bytesize, flags)?;
|
hipHostMalloc(pp, bytesize, flags)?;
|
||||||
unsafe { hipMemsetD8(hipDeviceptr_t(*pp), 0, bytesize) }?;
|
|
||||||
add_allocation(*pp, bytesize, context)?;
|
add_allocation(*pp, bytesize, context)?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue