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

GPU performance optimization #398

Open
sshin23 opened this issue Jan 10, 2025 · 0 comments
Open

GPU performance optimization #398

sshin23 opened this issue Jan 10, 2025 · 0 comments

Comments

@sshin23
Copy link
Member

sshin23 commented Jan 10, 2025

I observed that broadcast tend to allocate less memory than map!. E.g.,

julia> @time X .= .+(X,X); @time map!(+, X, X, X);
  0.000074 seconds (33 allocations: 608 bytes)
  0.000121 seconds (64 allocations: 2.078 KiB)

Also, we should cache the spmv buffer to reduce the matmul time
https://github.com/JuliaGPU/CUDA.jl/blob/1389800a26078df16cc689ed5138f0691185ce61/lib/cusparse/generic.jl#L181-L189

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