5 ms·
Interesting approach. I wonder if one could use a reduce operation across the cities or similar rather than atomic operations? GPUs are amazing at reduce oper
by bhouston 3y ago
Interesting approach.
I wonder if one could use a reduce operation across the cities or similar rather than atomic operations? GPUs are amazing at reduce operations.
- tspeterkim 3y agoAgreed. I tried reducing across cities first. The problem was that the work of gathering all the temperatures for each city (before I could launch the reduction CUDA kernels) required a full parsing through the input data. My final solution would be slower than the C++ baseline since the baseline already does the full parsing anyways.