Hacker News
Read post

The One Billion Row Challenge in CUDA: from 17m to 17s

A developer shares their solution for the One Billion Row Challenge in CUDA, achieving a runtime of 16.8 seconds on a V100 GPU. The solution involves work partitioning and using byte offsets instead of line buffers. The CUDA kernel handles parsing and updating statistics. The post discusses challenges such as adapting atomic operations for floats, working with C strings, and creating a city string to index lookup table. The solution is a significant improvement over the pure C++ baseline.

    #performance#c#cuda
Apr 14, 2024•9m read time•From tspeterkim.github.io
Post cover image
Table of contents
Baseline in pure C++Work Partitioning ApproachCUDA KernelProfilingPossible Optimization - Privatization using Shared MemoryTakeaway
9 Impressions
Hacker News's image
Hacker News

Hacker News is a community-driven platform for sharing and discussing technology news, startups, and...

17.4K Followers

•

141.7K Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard