8000 Jitify2 options handling overhaul by benbarsdell · Pull Request #129 · NVIDIA/jitify · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Jitify2 options handling overhaul #129

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

Merged
merged 2 commits into from
May 22, 2024

Conversation

benbarsdell
Copy link
Member
  • Refactors all options handling to use a single parser implementation and new Options and OptionsVec classes.
  • This makes the code significantly cleaner and more robust.
  • Maintains backwards compatibility with string vectors at API boundaries via implicit conversions.

jitify2.hpp Outdated
@@ -100,11 +103,13 @@
#endif

#include <algorithm>
#include <cassert>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the repeated includes in the different JITIF_SERIALIZATION_ONLY paths? Can these not just be factored out and moved above line 46?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Copy link
Collaborator
@maddyscientist maddyscientist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (beyond a trivial comment().

- Refactors all options handling to use a single parser implementation
  and new Options and OptionsVec classes.
- This makes the code significantly cleaner and more robust.
- Maintains backwards compatibility with string vectors at API
  boundaries via implicit conversions.
@benbarsdell benbarsdell force-pushed the jitify2-options-handling-overhaul-new branch from 942fb9c to 7bc924e Compare May 22, 2024 09:17
@benbarsdell benbarsdell merged commit d6b37a7 into jitify2 May 22, 2024
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
0