Copied host buffers: BaseBytes::read_plain only under the device test cfgs, which alone use it
This commit is contained in:
1 parent
b605b78f54
commit
93f72260df
1 file changed
+2
-2
@@ -789,12 +789,12 @@ impl BaseBytes {
|
||||
}
|
||||
|
||||
/// [`BaseBytes::read`] with plain loads, whatever the memory: a benchmark's measure of the
|
||||
/// streaming loads against them.
|
||||
/// streaming loads against them (`tests/copied_base_device.rs`).
|
||||
///
|
||||
/// # Safety
|
||||
///
|
||||
/// As [`BaseBytes::read`]'s.
|
||||
#[cfg(test)]
|
||||
#[cfg(all(test, any(m2v_gpu, m2v_cpu_icd)))]
|
||||
pub(crate) unsafe fn read_plain(&self, offset: usize, into: &mut [u8]) {
|
||||
// SAFETY: the caller's; `into` is the caller's own, apart.
|
||||
unsafe {
|
||||
|
||||
Reference in new issue
Block a user