Skip to content

Commit 76aeed6

Browse files
authored
chore: All of vortex-gpu requires compiler flag (#5362)
Signed-off-by: Robert Kruszewski <github@robertk.io>
1 parent 615bfef commit 76aeed6

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-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/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//! ```shell
99
//! RUSTFLAGS="--cfg gpu_unstable" cargo build -p ...
1010
//! ```
11+
#![cfg(gpu_unstable)]
1112

1213
pub mod bit_unpack;
1314
pub mod for_;

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)