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

Consider maximizing grid utilization #1321

Open
maleadt opened this issue Jan 13, 2022 · 1 comment
Open

Consider maximizing grid utilization #1321

maleadt opened this issue Jan 13, 2022 · 1 comment
Labels
good first issue Good for newcomers performance How fast can we go?

Comments

@maleadt
Copy link
Member

maleadt commented Jan 13, 2022

We currently maximize block utilization (taking the max threads), which may leave SMs underutilized. We should consider first selecting an optimal amount of blocks, before maximizing the thread could:

    config = launch_configuration(kernel.fun)
    threads = min(length(ps), config.threads)
    # XXX: this kernel performs much better with all blocks active
    blocks = max(cld(length(ps), threads), config.blocks)
    threads = cld(length(ps), blocks)

I'm sure this will lead to some kernels performing worse, though, but it's probably a good thing to test.

@maleadt maleadt added good first issue Good for newcomers performance How fast can we go? labels Jan 13, 2022
@maleadt
Copy link
Member Author

maleadt commented Jan 21, 2022

Attempt in JuliaGPU/GPUArrays.jl#389

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers performance How fast can we go?
Projects
None yet
Development

No branches or pull requests

1 participant