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

Replace FunctionSpec with methodinstance #417

Merged
merged 2 commits into from
Mar 30, 2023
Merged

Replace FunctionSpec with methodinstance #417

merged 2 commits into from
Mar 30, 2023

Conversation

maleadt
Copy link
Member

@maleadt maleadt commented Mar 30, 2023

With the kernel and name kwargs gone, FunctionSpec was becoming useless, so cut it out and replace it with Julia's MethodInstance, as suggested by @vtjnash & @vchuravy.

@jpsamaroo This is obviously breaking, but should just require changing FunctionSpec to methodinstance. In addition, I'm removing emit_julia since that function only served to look-up the method instance, but in a follow-up PR I'm going to change things so that you will be able to just call GPUCompiler.compile and won't need to call into any specific emit_ function again.

@maleadt maleadt changed the base branch from master to tb/world_ages_bis March 30, 2023 13:13
@codecov
Copy link

codecov bot commented Mar 30, 2023

Codecov Report

Patch coverage: 78.30% and project coverage change: -1.44 ⚠️

Comparison is base (94085d0) 80.07% compared to head (1a2f444) 78.64%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #417      +/-   ##
==========================================
- Coverage   80.07%   78.64%   -1.44%     
==========================================
  Files          24       24              
  Lines        2901     2903       +2     
==========================================
- Hits         2323     2283      -40     
- Misses        578      620      +42     
Impacted Files Coverage Δ
src/irgen.jl 83.65% <62.50%> (-4.39%) ⬇️
src/reflection.jl 34.88% <66.66%> (-2.04%) ⬇️
src/jlgen.jl 75.86% <80.00%> (-2.68%) ⬇️
src/driver.jl 92.09% <84.00%> (+0.63%) ⬆️
src/cache.jl 96.15% <100.00%> (+6.33%) ⬆️
src/interface.jl 80.95% <100.00%> (+3.17%) ⬆️
src/rtlib.jl 96.20% <100.00%> (ø)
src/validation.jl 97.33% <100.00%> (+4.00%) ⬆️

... and 3 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.

Base automatically changed from tb/world_ages_bis to master March 30, 2023 13:33
@maleadt maleadt force-pushed the tb/functionspec branch 3 times, most recently from 34a5ff6 to 3022dc1 Compare March 30, 2023 14:26
@maleadt maleadt merged commit 14fadbc into master Mar 30, 2023
@maleadt maleadt deleted the tb/functionspec branch March 30, 2023 18:31
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