-
Notifications
You must be signed in to change notification settings - Fork 294
Use wrapper with void* argument types for iterator advance/dereference signature
#6634
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
Use wrapper with void* argument types for iterator advance/dereference signature
#6634
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
3cef9d0 to
aaeb15b
Compare
|
/ok to test aaeb15b |
This comment has been minimized.
This comment has been minimized.
|
/ok to test 506b362 |
This comment has been minimized.
This comment has been minimized.
|
/ok to test 4334c15 |
This comment has been minimized.
This comment has been minimized.
c/parallel/test/test_merge_sort.cpp
Outdated
| "extern \"C\" __device__ void advance(void* state, const void* offset) {\n" | ||
| " auto* typed_state = static_cast<random_access_iterator_state_t*>(state);\n" | ||
| " auto offset_val = *static_cast<const unsigned long long*>(offset);\n" | ||
| " typed_state->d_input += offset_val;\n" |
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.
Question: why not use a raw string literal?
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.
We can. Changed to using raw strings in ac41501.
4334c15 to
ac41501
Compare
| def get_input_dereference_signature(self): | ||
| return ( | ||
| self.state_ptr_type, | ||
| types.CPointer(self.value_type), | ||
| ) | ||
|
|
||
| def get_output_dereference_signature(self): | ||
| return ( | ||
| self.state_ptr_type, | ||
| self.value_type, | ||
| ) |
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.
Important: let us delete these if they are no longer used
|
|
||
| # Create transform output iterator | ||
| d_out_it = TransformIterator(d_output, sqrt) | ||
| d_out_it = TransformOutputIterator(d_output, sqrt) |
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.
Question: why is this change needed now?
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.
No idea, and honestly no idea how this ever worked before...
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
🥳 CI Workflow Results🟩 Finished in 1h 26m: Pass: 100%/56 | Total: 15h 41m | Max: 1h 22m | Hits: 100%/1240See results here. |
Description
Merge after #6353.
Closes #4573. This PR is shown to resolve issues due to ODR violation, by unmarking a test that was previously marked
xfail.Checklist