Skip to content

Commit e866f75

Browse files
authored
fix vortex-gpu compilation (#5315)
I started to see vortex-gpu compilation issues after running `cargo clean`, this fixed the compilation for me Signed-off-by: Onur Satici <[email protected]>
1 parent 0932f92 commit e866f75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vortex-gpu/src/gpu_array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ impl GpuPrimitiveVector {
117117
let mut buffer = BufferMut::<P>::with_capacity(self.len);
118118
unsafe { buffer.set_len(self.len) }
119119
stream
120-
.memcpy_dtoh(&self.as_slice::<P>(), &mut buffer)
120+
.memcpy_dtoh(&self.as_slice::<P>(), &mut buffer[..])
121121
.map_err(|e| vortex_err!("Failed to copy to device: {e}"))?;
122122
stream
123123
.synchronize()

vortex-gpu/src/take.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ where
114114
unsafe { buffer.set_len(codes.len()) }
115115

116116
stream
117-
.memcpy_dtoh(&cu_out, &mut buffer)
117+
.memcpy_dtoh(&cu_out, &mut buffer[..])
118118
.map_err(|e| vortex_err!("Failed to copy to device: {e}"))?;
119119
stream
120120
.synchronize()

0 commit comments

Comments
 (0)