Skip to content

Instantly share code, notes, and snippets.

@americast
Last active April 22, 2018 06:05
Show Gist options
  • Save americast/95358d972647adf5c7ebcde7c58db51f to your computer and use it in GitHub Desktop.
Save americast/95358d972647adf5c7ebcde7c58db51f to your computer and use it in GitHub Desktop.
Benchmarking maxpool (CPU vs GPU)
size(x)[1] CPU (in μs) GPU (in μs)
3^2 17.740 43.371
3^3 51.962 42.883
3^4 319.035 44.559
3^5 2,566 107.347
3^6 25,295 718.807
3^7 354.477 ms 6,168
3^8 2,380 ms 55,023
size(x)[1] CPU (in μs) GPU (in μs)
3^2 5.902 34.292
3^3 30.730 39.111
3^4 258.552 37.156
3^5 2,284 50.775
3^6 23,652 213.645
3^7 224.629 ms 1,673
3^8 2,165 ms 14,660
@americast
Copy link
Author

americast commented Apr 20, 2018

Array sizes were (3^i, 3^i, 3, 1). Testing was performed on an NVIDIA Tesla K20c GPU.

With padding
The HEAD was at commit JuliaGPU/GPUArrays.jl@1e1104e

Without padding
The HEAD was at commit americast/GPUArrays.jl@5a88493

The code used to perform benchmarking may be found at https://gist.github.com/americast/0d66ff79aa2b371a47009700a602590b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment