Hacker News new | ask | show | jobs
by TillE 2096 days ago
I would have expected the <algorithm> header, but instead...synchronization primitives? std::chrono? I'm completely baffled about how that would be useful, but that's probably because I know very little about CUDA.
1 comments

GPUs are parallel processors. So, yes, synchronization primitives are the highest priority.

We focused on things that require /different/ implementations in host and device code.

The way you implement std::binary_search is the same in host and device code. Sure, we can stick `__host__ __device__` on it for you, but it's not really high value.

Synchronization primitives? Clocks? They are completely different. In fact, the machinery that we use to implement both the synchronization primitives and clocks has not previously been exposed in CUDA C++.