NVIDIAAllison DingTutorial
Get Started with GPU-Accelerated DuckDB Analytics Using the Sirius Core Extension
Summary
Analytical queries in DuckDB can become slow as datasets grow, slowing data exploration, pipelines, and applications while increasing compute costs. NVIDIA and DuckLabs collaborated to release Sirius as a DuckDB core extension, bringing GPU acceleration to the analytical query engine. With two SQL commands, INSTALL sirius and LOAD sirius, users can accelerate supported queries on NVIDIA GPUs without rewriting SQL or changing database schemas. In cold-run TPC-H benchmarks from 100 GB to 10 TB, Sirius on two NVIDIA GPUs achieved 3.25x to 5.50x speedups over CPU-based DuckDB; at SF3K, runtime dropped from 752.4 seconds to 160.6 seconds, a 4.69x speedup, with query-time compute cost reduced by approximately 71%. Sirius integrates into DuckDB’s standard workflow, with unsupported queries automatically falling back to the CPU engine, preserving the existing SQL interface.
Context
The post introduces the Sirius core extension for DuckDB, developed by NVIDIA and DuckLabs in collaboration with the University of Wisconsin–Madison, which enables GPU-accelerated analytical queries within DuckDB’s SQL workflow.
Approach / What changed
Install the Sirius core extension using INSTALL sirius and LOAD sirius in DuckDB 2.0, then execute supported analytical SQL queries on an NVIDIA GPU. Unsupported queries fall back to DuckDB’s CPU engine.
Takeaways
Sirius is installed and loaded with two SQL commands: INSTALL sirius; LOAD sirius; in DuckDB 2.0.
Sirius executes supported queries on the GPU while DuckDB handles parsing and optimization; unsupported queries fall back to CPU.
In TPC-H benchmarks, Sirius on two NVIDIA GPUs delivered 3.25x to 5.50x speedups over CPU-based DuckDB, with up to 79% lower compute cost at 10 TB.
FAQ
What are the prerequisites for using Sirius?
You need DuckDB 2.0 and an NVIDIA GPU with a compatible driver.
How do I install and load Sirius?
Use INSTALL sirius; and LOAD sirius; in a DuckDB session to download and activate the extension.
What happens if a query uses unsupported features?
Queries with unsupported features automatically fall back to DuckDB's CPU engine, preserving the existing SQL interface.
Source and freshness
- Source
- developer.nvidia.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.