File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff 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( )
Original file line number Diff line number Diff line change 88//! ```shell
99//! RUSTFLAGS="--cfg gpu_unstable" cargo build -p ...
1010//! ```
11+ #![ cfg( gpu_unstable) ]
1112
1213pub mod bit_unpack;
1314pub mod for_;
Original file line number Diff line number Diff 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 ( )
You can’t perform that action at this time.
0 commit comments