3 ms·
We can solve this by looking at the published latencies: http://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#arithmetic-instructions http://docs.nv
by pcwalton 9y ago
We can solve this by looking at the published latencies:
http://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#arithmetic-instructions http://docs.nvidia.com/cuda/cuda-c-programming-guide/index.h...
And indeed 32 bit integers and 32 bit floats are essentially the same, except for multiplication where it's fuzzy, but still quite fast.
Certainly modern GPUs are fast enough at integer ops that you shouldn't just assume your problem will be slow on the GPU just because it's integer based. Bitcoin mining (as much as I hate to bring it up) is an obvious counterexample, for instance.