-
Notifications
You must be signed in to change notification settings - Fork 14
Move nlambda default behavior into base class #489
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
Conversation
Note: I didn't include a We have more of these cases in the code where it might be useful to hide the base class version of a function, but we wouldn't be able to do so because of excessive |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the cleanup! For the EOS's that still have an nlambda, we need to make sure the signature is identical. That is to say, they need to be static int nlambda() noexcept
now.
I'll double check. Since I'm changing things, @Yurlungur what are your thoughts on just making these all |
If it works on device, I'm fine with that. If I recall, we were bitten by constexpr not working on device as we expected previously. |
From my reading, if the expression is compile time constant, it should be inlined and will be available on device. I can't think of a reason why this function wouldn't be compile time constant. |
Well lets just give it a try and see if tests pass. (May need to add a test to stress this) |
I ran into an issue with the |
Okay @Yurlungur I think everything should be the same now. I think I could have made |
Sounds good. Too bad that ended up being a bit messy. |
Okay I reversed myself and decided to just make |
I had some issues with the python API, but that appears to be working with some minor changes. Will merge when all tests pass (maybe with the exception of the Ampere nodes since the queue times for those are pretty long today). |
@Yurlungur tests pass. If you approve, feel free to merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR Summary
Does what it says...
PR Checklist
make format
command after configuring withcmake
.If preparing for a new release, in addition please check the following:
when='@main'
dependencies are updated to the release version in the package.py