Skip to content

Commit 8648244

Browse files
committed
fix CUDA test to use reduce
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
1 parent d09d9ec commit 8648244

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

vortex-cuda/src/kernel/encodings/bitpacked.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,10 @@ where
169169
mod tests {
170170
use futures::executor::block_on;
171171
use rstest::rstest;
172-
use vortex::array::ExecutionCtx;
173172
use vortex::array::IntoArray;
174173
use vortex::array::arrays::PrimitiveArray;
175174
use vortex::array::assert_arrays_eq;
176175
use vortex::array::dtype::NativePType;
177-
use vortex::array::session::ArraySession;
178176
use vortex::array::validity::Validity::NonNullable;
179177
use vortex::buffer::Buffer;
180178
use vortex::error::VortexExpect;
@@ -521,10 +519,9 @@ mod tests {
521519
.vortex_expect("operation should succeed in test");
522520
let slice_ref = bitpacked_array.clone().into_array().slice(67..3969)?;
523521
let bitpacked_ref = bitpacked_array.into_array();
524-
let mut exec_ctx = ExecutionCtx::new(VortexSession::empty().with::<ArraySession>());
525522
let sliced_array = bitpacked_ref
526523
.vtable()
527-
.execute_parent(&bitpacked_ref, &slice_ref, 0, &mut exec_ctx)?
524+
.reduce_parent(&bitpacked_ref, &slice_ref, 0)?
528525
.expect("expected slice kernel to execute");
529526
let cpu_result = sliced_array.to_canonical()?;
530527
let gpu_result = block_on(async {

0 commit comments

Comments
 (0)