Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impact of setting KERNEl_RADIUS in convolution separable when trying with larger input image size #191

Open
vidyalatha-badde opened this issue Mar 6, 2023 · 0 comments

Comments

@vidyalatha-badde
Copy link

vidyalatha-badde commented Mar 6, 2023

Could someone explain to me the impact of kernel_radius value in convolution separable code when working with larger input size (eg: Image Width x Height = 12800 x 12800)? I don't see any variation even when setting the value to KERNEL_RADIUS=8 or setting it to KERNEL_RADIUS=1 in this case.

Here is the output for the above image size with Kernel_radius = 8

Image Width x Height = 12800 x 12800

Allocating and initializing host arrays...
Allocating and initializing CUDA arrays...
Running GPU convolution (16 identical iterations)...

convolutionSeparable, Throughput = 21993.2377 MPixels/sec, **Time = 0.00745 s**, Size = 163840000 Pixels, NumDevsUsed = 1, Workgroup = 0

when kernel_radius = 1

Image Width x Height = 12800 x 12800

Allocating and initializing host arrays...
Allocating and initializing CUDA arrays...
Running GPU convolution (16 identical iterations)...

convolutionSeparable, Throughput = 21968.3556 MPixels/sec, **Time = 0.00746 s**, Size = 163840000 Pixels, NumDevsUsed = 1, Workgroup = 0

Is there any specific reason why it is not getting affected?
Also, it would be great if someone could tell me how to choose the kernel size (or any other parameter which needs to be set apart from it) while performing convolution separable on a larger input size.

Thanks,
Vidya.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant