News
NVIDIA and DuckLabs Introduce GPU-Accelerated Sirius Extension for DuckDB
NVIDIA and DuckLabs release Sirius, a GPU-accelerated extension for DuckDB, enabling faster analytical queries without altering SQL or database schemas.
NVIDIA and DuckLabs have collaborated to launch Sirius, a GPU-accelerated core extension for DuckDB, designed to enhance the performance of analytical queries. This development allows users to execute supported queries on NVIDIA GPUs without modifying SQL syntax or database schemas, offering significant speed and cost advantages for data analytics workflows.
How Sirius Integrates with DuckDB
Sirius operates as a GPU-native SQL engine, developed in partnership with the University of Wisconsin–Madison and NVIDIA. It integrates seamlessly into DuckDB’s query-processing workflow. DuckDB handles SQL parsing and optimization, while Sirius executes supported query plans on the GPU, returning results through the same connection. Queries with unsupported features automatically fall back to DuckDB’s CPU engine, ensuring compatibility and flexibility.
Installing Sirius is straightforward. Users can activate it with two SQL commands:
INSTALL sirius;LOAD sirius;
This process downloads and activates the extension, enabling GPU acceleration for supported analytical queries. The Sirius extension is compatible with DuckDB version 2.0 and requires an NVIDIA GPU with a compute capability of 7.5 or newer, along with a compatible CUDA driver.
Performance Benchmarks
Benchmark tests using TPC-H queries at scale factors ranging from 100 GB to 10 TB demonstrated Sirius’s performance advantages. Key results include:
- At a 1 TB scale factor (SF1K), Sirius reduced total query runtime from 347.3 seconds to 63.2 seconds, achieving a 5.50x speedup.
- At a 3 TB scale factor (SF3K), runtime dropped from 752.4 seconds to 160.6 seconds, delivering a 4.69x speedup and reducing query-time compute costs by approximately 71%.
- At a 10 TB scale factor (SF10K), a tuned two-GPU configuration completed the workload in 729.9 seconds compared to 2,369.4 seconds for the best CPU-based DuckDB setup, representing a 3.25x speedup and a 79% cost reduction.
The benchmarks highlight how workload size and hardware configurations affect performance. For instance, at SF100 (100 GB), a single GPU offered the lowest cost, while two GPUs provided the fastest runtime. At SF10K, tuning was critical, as the default two-GPU configuration failed to complete the workload, whereas the tuned setup succeeded.
Getting Started with Sirius
To begin using Sirius, users can follow these steps:
- Install DuckDB version 2.0 or higher and ensure access to an NVIDIA GPU with a compatible driver.
- Create or load a dataset in DuckDB, such as using the TPC-H extension for generating sample data.
- Install and load the Sirius extension with the commands
INSTALL sirius;andLOAD sirius;. - Run analytical queries, such as grouping and aggregating data, to leverage GPU acceleration.
The Sirius GitHub repository provides additional resources, including a benchmark runner, query definitions, and configuration details for evaluating performance on custom hardware setups.
Implications for Data Analytics
The Sirius extension brings GPU acceleration to DuckDB’s familiar SQL workflow, enabling faster query execution and lower compute costs for large-scale datasets. This innovation is particularly valuable for developers and organizations managing growing data volumes and seeking to optimize analytics pipelines without significant changes to existing workflows.