<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/streamlining-cub-with-a-single-call-api-p4equ0mqw" -->

---
title: Streamlining CUB with a Single-Call API | daily.dev
description: CUDA 13.1 introduces a new single-call API for CUB (CUDA Core Compute Libraries) that simplifies GPU primitive algorithm usage by eliminating the traditional...
canonical: https://daily.dev/posts/streamlining-cub-with-a-single-call-api-p4equ0mqw
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Streamlining CUB with a Single-Call API | daily.dev
og:description: CUDA 13.1 introduces a new single-call API for CUB (CUDA Core Compute Libraries) that simplifies GPU primitive algorithm usage by eliminating the traditional...
og:url: https://daily.dev/posts/streamlining-cub-with-a-single-call-api-p4equ0mqw
og:image: https://api.daily.dev/og/posts/p4Equ0mQW.png
og:image:alt: Streamlining CUB with a Single-Call API
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Streamlining CUB with a Single-Call API

**[NVIDIA Developer](https://daily.dev/sources/nvidiadev)** · 8 min read · 0 upvotes · 0 comments

## Summary

CUDA 13.1 introduces a new single-call API for CUB (CUDA Core Compute Libraries) that simplifies GPU primitive algorithm usage by eliminating the traditional two-phase pattern of memory estimation and allocation. The new API manages memory allocation automatically under the hood with zero performance overhead, while introducing an extensible environment argument that allows developers to configure execution options like custom memory resources and streams. This change addresses the widespread practice of wrapping CUB calls with macros (as seen in PyTorch) and provides a cleaner, more maintainable interface without sacrificing the flexibility needed for advanced use cases.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://developer.nvidia.com/blog/streamlining-cub-with-a-single-call-api/>

## Similar posts on daily.dev

- [CUDA Toolkit 13.4 Adds Windows on Arm Support and Greater Control over Shared GPUs](https://daily.dev/posts/cuda-toolkit-13-4-adds-windows-on-arm-support-and-greater-control-over-shared-gpus-lmzh9gyr6) · NVIDIA Developer · 1 upvotes · 0 comments
- [CUDA Python 1.0: Stable APIs, One Foundation, Full Platform Access](https://daily.dev/posts/cuda-python-1-0-stable-apis-one-foundation-full-platform-access-hoqtocim9) · NVIDIA Developer · 0 upvotes · 0 comments
- [CUDA Guide: Workflow for Performance Tuning](https://daily.dev/posts/cuda-guide-workflow-for-performance-tuning-wurjlraei) · DigitalOcean Community · 1 upvotes · 0 comments
- [Kernel Fusion in NVIDIA CUDA: Optimizing Memory Traffic and Launch Overhead](https://daily.dev/posts/kernel-fusion-in-nvidia-cuda-optimizing-memory-traffic-and-launch-overhead-vyzarvdyg) · NVIDIA Developer · 0 upvotes · 0 comments

---

Tags: [#c++](https://daily.dev/tags/c++), [#cuda](https://daily.dev/tags/cuda), [#gpu](https://daily.dev/tags/gpu), [#nvidia](https://daily.dev/tags/nvidia), [#performance](https://daily.dev/tags/performance)

[View this post on daily.dev](https://daily.dev/posts/streamlining-cub-with-a-single-call-api-p4equ0mqw)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Streamlining CUB with a Single-Call API","url":"https://daily.dev/posts/streamlining-cub-with-a-single-call-api-p4equ0mqw","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/streamlining-cub-with-a-single-call-api-p4equ0mqw"},"datePublished":"2026-01-21T21:31:27.925Z","dateModified":"2026-03-15T03:56:07.028Z","description":"CUDA 13.1 introduces a new single-call API for CUB (CUDA Core Compute Libraries) that simplifies GPU primitive algorithm usage by eliminating the traditional...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/861f06bde4bc5cd84775dd0b84fc5405?_a=AQAEulh","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/861f06bde4bc5cd84775dd0b84fc5405?_a=AQAEulh","isAccessibleForFree":true,"articleSection":"NVIDIA Developer","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"NVIDIA Developer","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/86e45aab42ba48ce83103d01b1119910","url":"https://daily.dev/sources/nvidiadev"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/streamlining-cub-with-a-single-call-api-p4equ0mqw","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"c++,cuda,gpu,nvidia,performance","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"NVIDIA Developer","item":"https://daily.dev/sources/nvidiadev"},{"@type":"ListItem","position":3,"name":"Streamlining CUB with a Single-Call API"}]}
```

