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

Optimize device lib linking #453

Merged
merged 4 commits into from
Jul 28, 2023
Merged

Optimize device lib linking #453

merged 4 commits into from
Jul 28, 2023

Conversation

pxl-th
Copy link
Member

@pxl-th pxl-th commented Jul 28, 2023

  • Cache contents of devlib to avoid reading it every time there is linking.
  • Do not link devlib if it is not needed.
    This applies only to ("hc", "hip", "irif", "ockl", "opencl", "ocml") devlibs, as other seem to be always required.

Before (Julia 1.10):

julia> @time sin.(x);
 11.552189 seconds (30.58 M allocations: 1.394 GiB, 1.27% gc time, 59.74% compilation time: 2% of which was recompilation)

After (Julia 1.10):

julia> @time sin.(x);
  7.220562 seconds (13.40 M allocations: 878.159 MiB, 1.49% gc time, 93.13% compilation time: 2% of which was recompilation)

Also test suite is now 2x faster to run 20 min -> 10 min.
image

@pxl-th pxl-th merged commit 097994c into master Jul 28, 2023
@pxl-th pxl-th deleted the pxl-th/devlib branch July 28, 2023 17:14
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

Successfully merging this pull request may close these issues.

1 participant