Processing Under Pressure: A Guide to Accelerating Capital Markets Workloads With CPU + GPU Compute
Learn how to identify, assess, and benchmark capital markets workloads that may benefit from selective GPU acceleration.
KX Delivers GPU-Accelerated Advantage for Real-Time AI in Capital Markets Learn more
Keep working in q while KDB-X offloads compute-intensive joins, sorts, aggregations, and numerical operations to NVIDIA GPUs. In an equities TCA assessment, three workloads averaged 3.3× faster end to end, with 13.1× faster GPU-eligible processing and a 27× peak function speedup.
Six shifts your quants, traders, and platform owners feel from the first GPU-offloaded job through to the post-trade review.
01
Run broader universes, longer histories, and larger parameter sweeps without reducing data resolution.
04
Process the same data volumes with fewer nodes when the workload is a strong fit for GPU execution.
02
Return execution insight sooner, leaving more time to act within the relevant trading window.
05
Reduce the runtime of the large joins, sorts, and aggregations that determine whether reports finish during the overnight window.
03
Use the .gpu namespace to run compute-intensive joins, sorts, and aggregations on NVIDIA GPUs from q.
06
Recalculate rolling windows, test more parameters, and validate models against higher-resolution histories within the existing research cycle.
Learn how to identify, assess, and benchmark capital markets workloads that may benefit from selective GPU acceleration.
KDB-X runs CPU and GPU processing in the same environment. Teams can move compute-intensive joins, sorts, aggregations, and matrix calculations to NVIDIA GPUs while other work remains on the CPU.
CPU
Everything Else
Stays exactly where it is.
GPU
VWAP Curve-Tilt Backtesting
9.2× faster
Select a category, then choose a use case to see its before/after CPU-to-GPU comparison.
Use Cases
Execution and TCA ·VWAP Curve-Tilt Backtesting
36,040 ms
Before · CPU
3,900 ms
After · GPU
9.2×
faster
Backtesting sweeps that validate price-prediction signals rerun VWAP across many volume-curve tilts on 60K orders. With KDB-X GPU Acceleration, the sweep runs 9.2× faster end to end on live desk data, allowing schedules to be recalibrated weekly or daily instead of quarterly.
Execution and TCA ·Child Order Spread Capture
62,000 ms
Before · CPU
5,600 ms
After · GPU
11.1×
faster
Spread capture joins 450K child orders to 450M quotes with a device-side as-of join. The run drops from 62 seconds to 5.6 seconds, enabling the desk to check 100% of child orders instead of relying on a sample.
Execution and TCA ·Intraday VWAP Cost Evolution
9,190 ms
Before · CPU
1,300 ms
After · GPU
7.1×
faster
This workload aligns 30K orders to 40M trades and recomputes VWAP slippage throughout the session. The run drops from 9.2 seconds to 1.3 seconds, enabling desks to diagnose slipping orders intraday and intervene before costs compound.
Execution and TCA ·Real-Time Streaming TCA
11,600 ms
Before · CPU
610 ms
After · GPU
19×
faster
Streaming TCA runs during the trading session across 20M trades and 200M quotes. At equal cost, one GPU versus 48 Xeon cores cuts query time from 11.6 seconds to 0.6 seconds, enabling desks to act on slippage while orders are live and avoid overnight data preparation.
Use Cases
Backtesting and Quant Research ·Full-Population Tick Backtesting
Overnight run
Before · CPU
Over lunch sweep
After · GPU
8–12×
faster
Backtests run on 100% of tick history, including multi-year windows, without downsampling or truncation. Research throughput is 8–12× higher on the identical q codebase, so a sweep that ran overnight fits into a lunch break and algo schedules can be recalibrated weekly or daily instead of quarterly.
Backtesting and Quant Research ·Stat-Arb Parameter Sweeps
CPU baseline
Before · CPU
1/14 of CPU scan time
After · GPU
14×
faster
Stat-arb parameter sweeps scan full tick history 14× faster. Quants can evaluate 4–5× more parameter variations per research cycle, allowing more candidate strategies to surface.
Backtesting and Quant Research ·Covariance and Linear Algebra Primitives
Export to Python or C++
Before · CPU
Native q on GPU
After · GPU
Up to 400×
faster
GPU matrix multiplication runs at up to 400× CPU speed on dense matrix math. The v2.8 build adds native cov, cor, xrank, and ungroup, allowing quants to compute multi-asset covariance matrices and factor models in q without exporting data to Python or C++ libraries.
Use Cases
Operations and Assessment ·Multi-Billion-Row EOD Batch Sorting
155.9 s on 20-core CPU
Before · CPU
14.8 s on four GPUs
After · GPU
5–10.5×
faster
GPU sorting with .gpu.xasc across billions of rows runs 5–10.5× faster than a 20-core CPU: 4.7× faster on one GPU and 10.5× faster on four. The shorter batch creates enough room in the overnight window to rerun processing after late data corrections.
Operations and Assessment ·Codebase GPU-Readiness Scan
Migration guesswork
Before · CPU
Ranked readiness report
After · GPU
10–30× potential
faster
A guided one-week assessment applies static analysis to a production q codebase, ranks the workloads suited to GPU acceleration and flags logic that will not benefit. At one bank, it identified candidate workloads with 10–30× speedup potential. At another, it flagged execution-algorithm logic as offering no benefit before capital was committed.
Use Cases
Risk and Simulation ·Monte Carlo Risk and Tail-Risk Hedging
External C# and PyTorch
Before · CPU
Native q on L4 GPUs
After · GPU
27.3×
faster
A credit and distressed-debt Monte Carlo workflow runs end to end in q on L4 GPUs. It processes 25,000 securities in under two seconds, well inside a 10-second SLA, and runs 27.3× faster overall. GPU random-number generation, which represents 60% of compute time, runs 99× faster. This supports client-specific stress testing and P&L attribution. The benchmark is validated, with delivery in progress.
Risk and Simulation ·Intraday VaR and Portfolio Exposure
Static overnight batch
Before · CPU
30-minute refresh target
After · GPU
Target cadence
faster
A customer is exploring a move from static overnight VaR and Expected Shortfall reporting to 30-minute refreshes across active trading books. The workload remains in architectural discovery and does not yet have a live benchmark.
Risk and Simulation ·Multi-Scenario Stress Testing
Separate risk engine and data hop
Before · CPU
Run in place on GPU
After · GPU
No benchmark yet
faster
A bank is evaluating three simulation and stress-testing workloads directly on GPU hardware. Running the workloads next to the data could remove the memory-transfer hop between a separate risk engine and the time-series database. Testing is ongoing.
Use Cases
AI and Search ·Sales Desk AI Assistant
Milvus / PostgreSQL
Before · CPU
5.9 ms / 201 ms
After · GPU
147× / 158.5×
faster
GPU-accelerated hybrid vector and time-series search answers sales-desk questions across 4.34 million chat messages. Vector searches complete in 5.9 milliseconds and complex queries in 201 milliseconds. That is 147× faster than Milvus and 158.5× faster than PostgreSQL, while keeping the chat data inside the bank. A bank-wide rollout is planned.
AI and Search ·Earnings Analysis AI Agent — RBC Aiden
60–150 minutes
Before · CPU
Minutes
After · GPU
Up to 20× search
faster
RBC Aiden's QuickTakes uses 14 autonomous agents to retrieve market data and text from KDB-X through GPU-accelerated hybrid time-series and vector search. Earnings analysis that previously required 60–150 minutes per release now takes minutes, with insights delivered up to 60% faster. Aiden is in production and scaling toward 100,000 users.
Identify which q workloads are strong candidates for GPU acceleration before committing engineering time.
On-premises, cloud, or containerized. KDB-X GPU Acceleration is available as a first-class q-native library. Teams continue writing q; GPU compute is introduced through targeted adaptation of performance-critical paths.
Run KDB-X GPU on your infrastructure or in the cloud. Docker-native, NVIDIA-certified on A100, H100, L40, and B200 with CUDA 12.9.
Use q-native GPU functions to selectively move compute-intensive operations onto NVIDIA GPUs — without requiring CUDA development.
Existing applications and schemas remain in place. Performance-critical paths may require targeted changes; operations that don’t benefit from GPU execution stay on CPU.
“We’re turning more data into validated ideas, faster.”
Head of AI & Digital Innovation
The bank’s Research, Sales, and Trading teams had more data and more research questions than their workflows could keep up with. KX + NVIDIA cut AI experimentation time significantly, giving them a faster path from raw data to validated answers.
For trading, GPU acceleration turns backtesting and signal validation from an hours-long process into same-session decisions — speeding up how fast new alpha signals and execution strategies reach production.
27x
peak function speedup, VWAP curve tilt
13.1x
avg core speedup across all 3 workloads
4–5 → 10
client deep-dives per week
| VWAP Curve Tilt Backtesting | 19.9× |
| 60K VWAP orders | Single core speedup |
Device-side as-of join makes spread-capture analysis fast enough to run routinely, sharpening execution quality insight.
| Child Order Spread Capture | 12.6× |
| 450K orders · 450M quotes | Single core speedup |
Device-side as-of join makes spread-capture analysis fast enough to run routinely, sharpening execution quality insight.
| Child Order Spread Capture | 12.6× |
| 450K orders · 450M quotes | Single core speedup |
GPU-resident slippage tracking lets desks diagnose algo reactions to changing conditions within the same session.
KDB-X GPU Acceleration doesn’t change how you write q. It changes where the heavy work runs — selectively, on NVIDIA GPUs, while the rest of your pipeline keeps moving.
CPU and GPU memory are distinct. KDB-X GPU Acceleration gives you precise control over which data moves to the GPU and when — so every byte of PCIe bandwidth is spent on what the computation actually needs.
Use q-native capabilities for time-series joins, sorting, filtering, aggregation, matrix computation, and controlled movement between CPU and GPU memory.
.gpu
Access GPU power through a familiar q interface using the .gpu namespace — no specialized GPU programming.
.gpu.to / .gpu.xto
Choose exactly which columns move to GPU memory. Wide payload columns stay on CPU.
.gpu.aj
Accelerate as-of joins and other core time-series primitives underpinning TCA, risk, and execution analytics.
.gpu.from
Move objects between host and device with a single function call — no manual memory management.
.gpu.select / .gpu.xasc
Run accelerated selections, aggregations, and sorts directly on GPU for large datasets.
cuFile
Direct disk-to-GPU loading via NVIDIA’s cuFile API, bypassing CPU bottlenecks on large backfills.
.gpu.gemm
Linear algebra and Monte Carlo simulation on device — up to 400× on factor exposure and covariance.
use
.gpu ships as a QPATH module, loaded with the use keyword — the same pattern as any other KDB-X module.
The single highest-leverage pattern in the .gpu namespace: move only the columns an operation needs — join keys, sort keys — and keep intermediate results GPU-resident. Wide payload columns never cross the bus.
/ whole tables cross the bus, both ways
T: .gpu.to t
Q: .gpu.to q
res: .gpu.aj[`sym`time; T; Q]
out: .gpu.from res / full table, pulled back
Full table, both directions – every stage.
/ push keys, not payload
T: update .gpu.to time, .gpu.to sym from t
Q: update .gpu.to time, .gpu.to sym from q
idx: .gpu.aj[`sym`time; T; Q] / stays GPU-resident
out: .gpu.from idx / index only, pulled back
Join-key columns only – result stays on device.
Bars are illustrative of relative bytes crossing the PCIe bus, not a measured benchmark.
KX analyzes the joins, sorts, grouped calculations, and data-movement patterns in your q code, maps them against measured benchmark patterns, and identifies where GPU acceleration is most likely to help. A KX engineer reviews the findings with you and recommends what to test first.
Estimates are directional. Measured results depend on data volumes, hardware, memory movement, and the proportion of GPU-supported operations.
Identifies joins, sorts, grouped calculations, and data-movement patterns most likely to benefit from GPU execution.
Maps findings against measured benchmark patterns to estimate where GPU acceleration is most likely to help.
Delivers a report scoped to your codebase — what to migrate, in what order, with ROI estimates attached.
Request a demo and see how KDB-X GPU Acceleration speeds up your compute workloads and gives your AI infrastructure room to scale.
"*" indicates required fields