An Even Easier Introduction to CUDA (Updated)
AI-generated summary of reporting by NVIDIA Developer Blog. Read the original for the full story.
Why it matters
Very little changes: this is a refresh of a 2017 CUDA programming tutorial, useful mainly to newcomers learning GPU programming, not a signal for practitioners.
NVIDIA updated its beginner guide to CUDA, the system programmers use to run calculations on the company's graphics chips. It walks through turning a simple C++ program that adds two million-element arrays into one that runs on a GPU, called a kernel, using unified memory. On an NVIDIA T4 chip the tutorial's kernel drops from 75 milliseconds with one thread to about 47 microseconds after adding parallel threads and prefetching data. It targets C++ developers with an NVIDIA GPU or a cloud instance.
NVIDIA refreshed its 'Even Easier Introduction to CUDA' tutorial, originally published January 2017, updating code and profiling steps for current hardware. It shows engineers how to get large speedups: a T4 GPU running the tutorial's array-addition kernel at 75 ms single-threaded reaches roughly 47 microseconds when parallelized across thread blocks and data is prefetched to the GPU. Anyone weighing GPU programming or onboarding developers can use it as free training material, but it announces no products, pricing or timelines.
Updated NVIDIA tutorial teaching CUDA C++ basics: marking functions __global__, allocating with cudaMallocManaged(), launching via <<<>>> configuration, and grid-stride loops using blockIdx.x * blockDim.x + threadIdx.x. Profiling with Nsight Systems shows the add kernel at 75 ms on one thread, 4.2 ms with one 256-thread block, and ~47 microseconds after cudaMemPrefetchAsync() eliminates on-demand page migration, hitting 265 GB/s, over 80% of the T4's 320 GB/s peak. Limitations noted: Unified Memory page faults stall threads, and memory rather than compute is the bottleneck.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Samsung is testing a feature that changes the angle of photos you’ve already taken
Samsung’s new Recompose lets users change photo angles after shooting, potentially reducing the need for multiple shots and improving post-capture editing workflows for photographers and casual users alike.
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.