Sirius is a GPU-native SQL engine. It plugs into existing databases via the standard Substrait query format, requiring no query rewrites or major system changes. Sirius currently supports DuckDB and Starrocks (coming soon), other systems marked with * are on our roadmap. Built on NVIDIA CUDA-X libraries including cuDF, cuVS, and cuCascade, Sirius delivers high-performance GPU-accelerated analytics.
Use separate connections to one DuckDB DatabaseInstance and set startup
sirius.max_concurrent_queries (default 1). See the concurrent-query guide
for admission, maintenance, cancellation, memory pressure and qualification scope.
TPC-H hot runs on AWS, 22 queries · best Sirius g7e size vs DuckDB on m9g.16xlarge · cost per run, log scales · lower left is better.
For the legacy Sirius implementation used for the ClickBench results, see the
legacy-dev archive (pinned at f79a6f42).
- Linux on amd64/x86_64 or arm64/aarch64 with
glibc >= 2.28. - NVIDIA Turing or newer, with compute capability 7.5+.
- CUDA 13.x (driver 580.65.06 or newer) or CUDA 12.x (driver 570.26 or newer).
io_uringenabled at runtime (CONFIG_IO_URING,kernel.io_uring_disabled=0recommended). Containers must allowio_uring_setup,io_uring_enter, andio_uring_register.- Local Parquet files should be on a filesystem/block device that supports direct I/O (
O_DIRECT).
Sirius is available as a DuckDB core extension since DuckDB v2.0.1, on Linux (linux_amd64 and linux_arm64). This is the quickest way to try Sirius: install and load it from any DuckDB client.
INSTALL sirius;
LOAD sirius;LOAD sirius picks the Sirius backend that matches your NVIDIA driver (CUDA 12 or CUDA 13) and downloads it on first use. Once it's loaded, supported queries run on the GPU with no query changes. For details on backends, CPU fallback, updating and settings, see the Sirius extension page in the DuckDB documentation.
Prebuilt Sirius extensions are also published as GitHub releases, which you can use without building from source:
stable: a maintainer-selected build, promoted manuallylatest: tracks the newest successful build onmainautomatically, possible to encounter breaking changes
Both include full install instructions in the release notes: installing a matching DuckDB version, downloading the right binary for your platform, and a sample query to try it with.
Build from source to use the latest code on main, make changes to Sirius, or run its tests. For full build instructions, alternate build types, pre-commit setup, and testing, see DEVELOPMENT.md.
- Git (to clone the repo)
- Pixi (install instructions here)
git clone --no-recurse-submodules https://github.com/sirius-db/sirius.git
cd sirius
git submodule update --init --depth=1 --jobs 5 duckdb substrait cucascade sirius-duckdb/duckdb sirius-duckdb/extension-ci-tools
pixi run make TEST_BUILD_TARGET=
pixi run duckdbAlternatively, load the extension into an existing DuckDB shell:
LOAD 'sirius-duckdb/build/release/extension/sirius/sirius.duckdb_extension';Either way, all DuckDB queries are automatically intercepted by the optimizer hook and run on GPU — no query rewrites required. Queries with unsupported operators fall back silently to CPU.
-- Load the TPC-H extension and generate data (scale factor 10 = ~10 GB)
INSTALL tpch;
LOAD tpch;
CALL dbgen(sf=10);
-- Plain SQL runs on GPU automatically
SELECT l_returnflag, sum(l_quantity)
FROM lineitem
GROUP BY l_returnflag
ORDER BY l_returnflag;
-- TPC-H data is exported as Parquet for use in later examples
COPY lineitem TO '/path/to/lineitem.parquet' (FORMAT PARQUET);
-- Disable transparent GPU execution for this connection
SET gpu_execution = false;
-- ... or for every connection of this database instance without a session value
SET GLOBAL gpu_execution = false;Execution is out-of-core with tiered memory management (GPU/host/disk), automatic data partitioning, and spilling, and works with both Parquet and DuckDB-native storage. See gpu_execution for build, configuration, and testing details.
Use Sirius through DuckDB's Python API: load the extension, execute SQL, and fetch results. Supported queries run on the GPU automatically, just as they do in the DuckDB shell.
Sirius supports one active engine context per process; this is not enforced at runtime. Connections to the same DuckDB database instance share that context. Close all connections to the first database instance and release any objects that keep it alive before creating another instance. See the Context API documentation for process-wide configuration and lifetime restrictions.
The v2 extension requires the exact DuckDB revision pinned in this repository.
Python use requires a package built from that matching revision. The DuckDB Python
package in pixi.toml is intended for fixtures and data generation;
its version number alone does not establish extension compatibility. Use the built
CLI above if a matching Python client is unavailable.
Save this example as example.py in the repository root and replace /path/to/lineitem.parquet
with your TPC-H Parquet file. allow_unsigned_extensions allows loading the locally built
extension.
import duckdb
con = duckdb.connect(":memory:", config={"allow_unsigned_extensions": "true"})
con.execute("""
CREATE VIEW lineitem AS
SELECT * FROM read_parquet('/path/to/lineitem.parquet')
""")
con.execute("LOAD 'sirius-duckdb/build/release/extension/sirius/sirius.duckdb_extension'")
rows = con.execute("""
SELECT l_returnflag, SUM(l_quantity) AS total_quantity
FROM lineitem
GROUP BY l_returnflag
ORDER BY l_returnflag
""").fetchall()
print(rows)
con.close()Run it from the repository root with a Python client built from the matching DuckDB revision. If that client is installed in your Pixi environment, use:
pixi run python example.pyFor an example using TPC-H data from Parquet files or a DuckDB database, see the Python benchmark script.
The Python benchmark and power/throughput runners require a Python DuckDB client built from the pinned v2 revision, as described above. The CLI-based scripts use the built v2 host.
Sirius reads table data from storage on every query. For the best hot-run performance, pin
frequently queried tables: pin_table materializes a table's columns into memory once, and
subsequent queries over that source are served straight from the pinned copy, skipping file
I/O and decode entirely. Queries don't change — pinned tables are matched automatically.
-- Pin a parquet file (or glob) into GPU memory; omit cols to pin all columns
CALL pin_table('/path/to/lineitem.parquet', name = 'lineitem', tier = 'gpu',
cols = ['l_orderkey', 'l_quantity', 'l_extendedprice', 'l_shipdate']);
-- Pin a DuckDB base table
CALL pin_table(format = 'duckdb', name = 'my_table', tier = 'gpu');
-- Served from the pinned copy — no file I/O
SELECT sum(l_extendedprice * l_quantity)
FROM read_parquet('/path/to/lineitem.parquet')
WHERE l_shipdate >= DATE '1994-01-01';
-- Release the pinned memory
CALL unpin_table('lineitem');tier = 'gpu' pins columns in GPU memory for the fastest scans; tier = 'host' pins them in
pinned host memory instead, for tables larger than GPU memory.
Deletes and committed inserts on pinned DuckDB tables are reconciled per query. UPDATE,
MERGE ... UPDATE, and INSERT ... ON CONFLICT DO UPDATE are rejected while the target table is
pinned; run CALL unpin_table(...) before updating it. An explicit CHECKPOINT while a pin is
live makes that pin ineligible to serve: subsequent queries fall back or error until the table is
unpinned and pinned again.
Sirius attempts Simpatico compression by default when pinning data in GPU or host memory.
Without a plan file, it automatically chooses a plan for each column in each chunk. Use
compression => false on a pin call, or SET pin_table_compression = false, to opt out.
Table plan files are optional overrides. This example runs from the repository root and uses the bundled TPC-H SF1000 plans instead of automatic selection:
SET pin_table_compression = true;
SET pin_table_input_compression_plan_dir = 'src/compression/simpatico_codegen/plans/tpch_sf1000';
CALL pin_table('/path/to/lineitem.parquet', name = 'lineitem', tier = 'gpu',
cols = ['l_returnflag', 'l_quantity']);
-- Normal SQL reads the compressed pinned data automatically
SELECT l_returnflag, SUM(l_quantity) AS total_quantity
FROM read_parquet('/path/to/lineitem.parquet')
GROUP BY l_returnflag
ORDER BY l_returnflag;
CALL unpin_table('lineitem');Use tier = 'host' to pin compressed data in host memory. To override automatic selection for
other datasets, point the plan directory at plans matching your table schemas. A plan file
must match the pinned table's name (for example, lineitem.txt) and contain one column plan
per full-table column in schema order. Without a readable, nonempty matching file, selection
remains automatic. A selected file that does not cover the requested columns leaves the pin
uncompressed, as do small chunks, insufficient savings, and recoverable encoding failures.
Each pin call reads the calling session's plan settings; no process restart is needed to change a plan. A compressed GPU result replaces the previous entry when pinned again. A raw GPU result can merge compatible raw columns, or replace a previous compressed GPU entry. Pin the complete intended column set together when compression is enabled. See the guide below for merge requirements and explicit-plan staging limits.
From Python, execute the same SQL with con.execute(...) after loading the extension and before
querying. See the compressed pinning guide for plan selection
and tuning.
Sirius loads its settings from a YAML config file, searched in this order:
- Path in the
SIRIUS_CONFIG_FILEenvironment variable ./sirius.yaml(current working directory)~/.sirius/sirius.yaml
If no config file is found, built-in defaults apply (95% GPU memory, 8 GiB pinned host memory per NUMA node). See the Configuration reference for all options: memory tiers, thread pools, operator parameters, and runtime SET variables. An example config is provided at test/cpp/integration/integration.yaml.
Disk spilling is disabled by default: sirius.memory.disk.downgrade_root_dirs is empty,
so there is no default spill directory. GPU data can still spill to host memory without
a disk tier.
To enable spilling from host memory to disk, add a spill directory on a fast local mount
(NVMe preferred) to your sirius.yaml before starting Sirius:
sirius:
memory:
disk:
downgrade_root_dirs: "/mnt/nvme/sirius-spill"
capacity_bytes: 1TiReplace the path with a writable directory on your machine. capacity_bytes limits the
disk spill tier and defaults to 1 TiB; it must be greater than zero to enable the tier.
If your config is elsewhere, set SIRIUS_CONFIG_FILE=/path/to/sirius.yaml before loading
the extension. See the disk memory configuration
for all disk settings.
Source builds log with spdlog to log/sirius_<date>.log, relative to the current working directory, at level info.
Messages from the embedded cuCascade library (GPU peer-access setup, topology discovery, CUDA error reports, and its I/O layer where enabled) flow through the same sink, prefixed [cucascade], and are filtered by the same log level.
The released sirius_cuda12 and sirius_cuda13 extensions write no files by default: they log through DuckDB's logger and leave Quent telemetry off. Read their logs with CALL enable_logging(); SELECT * FROM duckdb_logs WHERE type = 'Sirius';, or select file logging with SET sirius_log_backend = 'spdlog' or SIRIUS_LOG_BACKEND=spdlog. When a query falls back to the CPU, the banner printed on stdout includes the GPU error.
Log directory and level for the spdlog backend can be initialized via environment variables before loading the extension:
export SIRIUS_LOG_BACKEND=spdlog # needed for the released extensions
export SIRIUS_LOG_DIR=/path/to/logs
export SIRIUS_LOG_LEVEL=traceBoth can also be configured at runtime via DuckDB's SET command:
SET sirius_log_dir = '/path/to/logs';
SET sirius_log_level = 'trace';
SET sirius_log_flush_seconds = 1;Note: Tracing is experimental and the telemetry schema may change.
Sirius instruments query execution with Quent, emitting per-query traces of operator and pipeline activity that Quent can render as an interactive browser timeline. Enable it in your YAML config file,
sirius:
telemetry:
enable_quent: true
output_directory: telemetry_datarun queries, then visualize:
pixi run quent # serves Quent UI at http://localhost:8080See the Quent Telemetry guide for the full setup details: enabling the exporter, per-query labeling, generating telemetry (using a TPC-H helper), and visualization.
Sirius is under active development. Notable current limitations include:
-
Data Type Coverage: Sirius currently supports commonly used data types including
INTEGER,BIGINT,FLOAT,DOUBLE,VARCHAR,DATE,TIMESTAMP, andDECIMAL. We are actively working on supporting additional data types—such as nested types. -
Operator Coverage: At present, Sirius supports
FILTER,PROJECTION,JOIN(Hash/Nested Loop/Delim),GROUP-BY,ORDER-BY,AGGREGATION,TOP-N,LIMIT, andCTE. We are working on adding more advanced operators such asWINDOWfunctions andASOF JOIN. -
DuckDB v2 regex rewrites: Whole-input backreference replacements, including the ClickBench Q28 URL pattern, are rewritten to
regexp_extract(..., 'k')and currently require CPU fallback instead of using the GPU regex implementation. Tracked in #2146.
For a full list of current limitations and ongoing work, please refer to our GitHub issues page. Unsupported types and operators fall back to DuckDB CPU execution when fallback is enabled.
Sirius is still under major development and we are working on adding more features to Sirius, such as multi-node, more operators, data types, accelerating more engines, and many more.
Sirius always welcomes new contributors! If you are interested, check our website, reach out to our email, or join our slack channel.
Let's kickstart the GPU eras for Data Analytics!

