Compare the time used for convolution
Input a image named "test.jpg" and do convolution with a 3ร3 kernel like this:
| -1 -1 -1 |
| -1 8 -1 |
| -1 -1 -1 |
cpu cpu_openMP cuda cuda_constant cuda_texture cuda_texture_2d cuda_texture_constant
- CUDA is FASTER than CPU
- cuda_texture_constant is the FASTEST
- image size dosen't slow down the speed of the CUDA
- Ubuntu is faster than Windows(I have a PC installed Windows and Ubuntu at the same time)
- openMP is useful when you have no CUDA.
For more information,please refer to the data_and_figure.xlsx
Ubuntu's performance on two images
CPU and openMP