How NVIDIA’s Sirius Extension Supercharges DuckDB with GPU Analytics

Key Takeaways

  • Sirius integrates GPU acceleration into DuckDB as a core extension, requiring only two SQL commands to install and load.
  • DuckDB handles SQL parsing and optimization; Sirius executes supported queries on NVIDIA GPUs.
  • Benchmark results show 3.25x-5.50x speedups and up to 79% lower query-time compute costs at scale.
  • Workloads automatically fall back to DuckDBs CPU engine for unsupported features.

As datasets grow, analytical queries slow down, throttling data exploration and pipelines. NVIDIA and DuckLabs have answered with Sirius, an open-source DuckDB core extension that brings native GPU acceleration to DuckDBs analytical engine-no SQL rewrite, no schema changes required. The Sirius project is available on GitHub.

How Sirius Works

DuckDB remains the application’s SQL interface, handling parsing and optimization. Sirius takes over execution, running supported query plans on the GPU and returning results through the same connection. This integration lets developers stay in SQL while tapping parallel compute power.

Run Your First GPU Query

Getting started requires DuckDB 2.0 and an NVIDIA GPU with a compatible driver. Open a file-backed database, enable the TPC-H extension to generate sample data, then persist it with a CHECKPOINT statement. In the same session, install and load Sirius using INSTALL and LOAD commands. The extension auto-selects the CUDA backend for your driver.

Run a sample query grouping line items by return flag and calculating total quantity-supported queries execute on the GPU with identical SQL syntax.

Benchmarks: Speed and Cost

Testing against CPU-based DuckDB using TPC-H-derived queries on Amazon S3 storage across scale factors SF100, SF1K, SF3K, and SF10K revealed significant advantages with tuned settings. At SF1K, total query runtime dropped from 347.3 seconds to 63.2 seconds. At SF3K, runtime fell from 752.4 seconds to 160.6 seconds, delivering a 4.69x speedup. Query-time compute cost at SF3K decreased by approximately 71%. At SF10K, the tuned two-GPU configuration completed the workload in 729.9 seconds versus 2,369.4 seconds for the best CPU configuration-a 3.25x speedup and roughly 79% lower compute cost. At SF100, a single GPU offered the lowest cost, while two GPUs delivered the shortest runtime.

For more on GPU-accelerated analytics, see NVIDIA’s GPU Analytics page.

Sirius integrates GPU execution into DuckDBs workflow. Unsupported features automatically fall back to DuckDBs CPU engine, ensuring compatibility. The Sirius repository provides a benchmark runner, query definitions, and setup instructions for teams to evaluate performance on their own hardware.

As your data grows, Sirius lets you accelerate supported queries while keeping your SQL, tools, and workflow entirely within DuckDB. Install the extension, run the example, and explore how GPU execution transforms your analytical pipelines. Share your results and feedback with the Sirius community.

Read more: Nvidia Crushes Quantum Bottleneck: 12-Week Research Task Slashed to 45 Minutes

Read more: MIT Unveils Triple-Threat Chip Strategy: Superconducting, AI-Fabricated, Bio-Inspired

You'll Also Love...

Leave a Reply

Your email address will not be published. Required fields are marked *