DuckDB users can now install the Sirius core extension to run supported analytical queries on NVIDIA GPUs. It leaves existing SQL and database schemas defining table structures and relationships unchanged. The aim is to reduce runtime and compute costs for data-heavy analytics.
1. Install in DuckDB and Run Queries on GPUs
NVIDIA and DuckLabs jointly released Sirius as a DuckDB core extension. Sirius is an open-source GPU-based SQL engine developed by the University of Wisconsin–Madison and NVIDIA. It requires DuckDB 2.0 and an NVIDIA GPU with a compatible driver.
Install the extension and load it in the current connection to use it. The extension is about 700MB, with download time varying by connection speed. It automatically selects a driver-compatible CUDA backend, the software component that runs GPU computations.
-- Sirius is about 700MB; download time depends on connection speed.
INSTALL sirius;
LOAD sirius;2. DuckDB Handles SQL, GPUs Run Supported Queries
DuckDB parses SQL and builds an execution plan that determines query processing order. Sirius executes supported query plans on GPUs, returning results through the same connection. Users can retain their SQL workflows without rewriting analytics code for GPU programming or changing schemas.
Queries with unsupported features fall back to DuckDB's CPU engine. Developers receive results through the same connection rather than using separate interfaces for GPU and CPU queries.
The source provides an example using TPC-H, a standard database analytics benchmark extension, to generate a small dataset and sum quantities by return flag. It introduces the workflow from data generation through extension loading and query execution.
3. Reported Runtimes in Large-Scale Tests
NVIDIA compared TPC-H-derived queries on data stored in Amazon S3 using a pinned development build. Cold runs excluded caching effects from previous runs, with data sizes ranging from 100GB to 10TB.
According to NVIDIA, the workload-tuned two-GPU setup in the 3TB test was 4.69x faster than the best CPU-based DuckDB setup tested. Query-time compute costs were about 71% lower. For the same tuned workload, moving from one GPU to two cut runtime from 298.5 seconds to 160.6 seconds and execution cost from $0.44 to $0.37.
NVIDIA reported that the tuned two-GPU setup was 3.25–5.50x faster overall than the best CPU setup tested. Runtime fell from 347.3 seconds to 63.2 seconds at 1TB. At 10TB, it fell from 2,369.4 seconds to 729.9 seconds, with compute costs about 79% lower.
Measurement scopes differ: Sirius excludes result fetching and export, while DuckDB includes CSV output. Costs cover only measured instance runtime, meaning time on rented cloud servers. Startup, validation, storage, S3, and idle time were excluded.
Table: Total Runtime Comparison for TPC-H-Derived Queries
Conditions: NVIDIA report; AWS instances; best CPU-based DuckDB setup tested vs. Sirius tuned 2 GPU setup; Amazon S3 data; cold runs; pinned development build. Sirius excludes result fetching and export; DuckDB includes CSV output.
Unit: seconds
| Data size | CPU DuckDB total runtime (seconds) | Sirius (tuned 2 GPU) total runtime (seconds) |
|---|---|---|
| 1TB | 347.3 | 63.2 |
| 3TB | 752.4 | 160.6 |
| 10TB | 2,369.4 | 729.9 |
4. Configuration Choices Depend on Workload Size
In the 100GB test, one GPU minimized cost while two GPUs minimized runtime. At 10TB, tuned setups took 1,853.4 seconds and $2.71 with one GPU, versus 729.9 seconds and $1.68 with two, favoring two GPUs on both measures. For smaller workloads, the choice depends on whether cost or speed takes priority.
GPU acceleration can reduce runtime and compute costs, but developers must secure GPU resources, download the extension, and choose workload-specific settings. In the 10TB test, the default two-GPU setup failed to finish, while the tuned setup completed in 729.9 seconds. Settings thus had a major impact even with the same GPU count.
Sirius moves supported analytics to GPUs while preserving familiar SQL workflows, but actual gains depend on GPU configuration and workload-specific tuning.
