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

fix up and optimize Core.Compiler.method_table(::GPUCompiler) #426

Merged
merged 1 commit into from
Apr 12, 2023

Conversation

aviatesk
Copy link
Contributor

  • restrict mt argument type to Core.MethodTable since mt::Nothing is not supported when using overlay method table view.
  • use CachedMethodTable if available to speed up method look up for heavy compilation workload with the duplicated method call.

@codecov
Copy link

codecov bot commented Apr 11, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -6.66 ⚠️

Comparison is base (cc41cfa) 86.78% compared to head (c523b3b) 80.13%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #426      +/-   ##
==========================================
- Coverage   86.78%   80.13%   -6.66%     
==========================================
  Files          24       24              
  Lines        2928     2904      -24     
==========================================
- Hits         2541     2327     -214     
- Misses        387      577     +190     
Impacted Files Coverage Δ
src/jlgen.jl 80.55% <100.00%> (-3.30%) ⬇️

... and 10 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@maleadt
Copy link
Member

maleadt commented Apr 12, 2023

Isn't the nothing argument required for 1.6? CI is currently broken, so let's rebase as soon as I fix that.

EDIT: Oh, I see the MTType now.

- restrict `mt` argument type to `Core.MethodTable` since `mt::Nothing`
  is not supported when using overlay method table view.
- use `CachedMethodTable` if available to speed up method look up for
  heavy compilation workload with the duplicated method call.
@aviatesk
Copy link
Contributor Author

Yeah, now the argument type is divided by version.

@maleadt
Copy link
Member

maleadt commented Apr 12, 2023

Thanks!

@maleadt maleadt merged commit 341e2e8 into JuliaGPU:master Apr 12, 2023
@aviatesk aviatesk deleted the avi/method_table branch April 13, 2023 06:24
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.

2 participants