3 ms·
By the way, the term for the ratio "arithmetic computations per memory access", which a lot of the comments here are referring to, is "arithmetic intensity". (
by kragen 15y ago
By the way, the term for the ratio "arithmetic computations per memory access", which a lot of the comments here are referring to, is "arithmetic intensity". (We used to say "computational intensity" but that term is even more confusing.) Low arithmetic intensity problems are going to be bottlenecked on memory transfer time, especially for GPGPU, and I'm surprised to see that the GPU doesn't come out quite a bit worse in the comparison for this low-arithmetic-intensity problem. Maybe he should have picked a simpler operation than sine if he wants to make his CPU look more awesome — reciprocal, say. Take the reciprocal of 10 million random numbers.
- repsilat 15y ago> Low arithmetic intensity problems are going to be bottlenecked on memory transfer time, especially for GPGPU True in absolute terms, but it might still be worthwhile doing that anyway. You're still offloading computation to the GPU, and the data transfer isn't going to tie up all of your CPU's cores. While you're sending data across, the rest of your CPU could be doing other tasks it's better suited for (branchy code, virtual function calls, recursion...).