Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions vortex-tui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ tokio = { workspace = true, features = ["rt-multi-thread"] }
vortex = { workspace = true, features = ["tokio"] }
vortex-datafusion = { workspace = true }

[target.'cfg(target_os = "linux")'.dependencies]
vortex-cuda = { workspace = true, optional = true }

[features]
cuda = ["dep:vortex-cuda"]

[lints]
workspace = true

Expand Down
12 changes: 12 additions & 0 deletions vortex-tui/src/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ pub enum Strategy {
Btrblocks,
/// Use the Compact compression strategy for more aggressive compression.
Compact,
#[cfg(all(target_os = "linux", feature = "cuda"))]
/// Use CUDA-compatible encodings with CudaFlatLayout.
Cuda,
}

/// Command-line flags for the convert command.
Expand Down Expand Up @@ -95,6 +98,15 @@ pub async fn exec_convert(session: &VortexSession, flags: ConvertArgs) -> anyhow
let strategy = match flags.strategy {
Strategy::Btrblocks => strategy,
Strategy::Compact => strategy.with_compact_encodings(),
#[cfg(all(target_os = "linux", feature = "cuda"))]
Strategy::Cuda => {
use std::sync::Arc;
strategy
.with_cuda_compatible_encodings()
.with_flat_strategy(Arc::new(
vortex_cuda::layout::CudaFlatLayoutStrategy::default(),
))
}
};

let mut file = File::create(output_path).await?;
Expand Down
Loading