-
Notifications
You must be signed in to change notification settings - Fork 915
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
Create a dispatcher for invoking regex kernel functions #10349
Conversation
Codecov Report
@@ Coverage Diff @@
## branch-22.04 #10349 +/- ##
=============================================
Coverage 10.58% 10.58%
=============================================
Files 125 125
Lines 21058 21058
=============================================
Hits 2228 2228
Misses 18830 18830 Continue to review full report at Codecov.
|
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.
A few minor suggestions, but no blockers. LGTM!
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.
This is awesome! Cleans up a lot of code. I have a few suggestions.
@gpucibot merge |
Closes #10138
Refactor the various regex function calls to use a dispatcher instead of if-else clauses. Each regex call currently requires different stack sizes (and later launch parameters). Changes to these parameters are sometimes difficult to coordinate since they usually need to be duplicated across about 10 APIs that are currently using regex calls. The new
regex_dispatcher
makes calling these much cleaner and easier to maintain. This will be helpful when experimenting with possibly using different launch parameters.No functions have changed. Mostly this is a refactoring and cleanup effort. The
findall.cu
was also recoded to use the newcount_matches
utility.