-
Notifications
You must be signed in to change notification settings - Fork 116
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
[Bindless][CUDA] Unique addressing modes per dimension #1168
[Bindless][CUDA] Unique addressing modes per dimension #1168
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1168 +/- ##
==========================================
- Coverage 15.46% 15.42% -0.04%
==========================================
Files 238 238
Lines 33883 33956 +73
Branches 3747 3753 +6
==========================================
Hits 5239 5239
- Misses 28593 28666 +73
Partials 51 51 ☔ View full report in Codecov by Sentry. |
Pinging @oneapi-src/unified-runtime-cuda-write for approval and ready to merge tag. |
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.
Why are modified files listed in the commit message?
Extends the CUDA adapter to allow for unique addressing modes per dimension
153d878
to
7b0a45a
Compare
I've removed them from the commit message, @ldrumm. |
d683997
to
a0555f7
Compare
Pinging @oneapi-src/unified-runtime-cuda-write for approvals/reviews and ready to merge tag. |
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.
CUDA changes LGTM after connecting it with the changes from intel/llvm.
.. a minor comment but the changes look fine.
ur_sampler_addressing_mode_t AddrModeProp = | ||
hSampler->getAddressingModeDim(i); | ||
if (AddrModeProp == (UR_SAMPLER_ADDRESSING_MODE_CLAMP_TO_EDGE - | ||
UR_SAMPLER_ADDRESSING_MODE_NONE)) { |
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.
Do we need to always substract UR_SAMPLER_ADDRESSING_MODE_NONE
which is 0?
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.
That's a good point. It's a carry-over from before UR where PI_SAMPLER_ADDRESSING_MODE_NONE
was not 0.
Would you prefer I remove it?
Add the ability to specify unique addressing modes per dimension to the bindless_image_sampler Corresponding CUDA adapter UR PR: oneapi-src/unified-runtime#1168 --------- Co-authored-by: Kenneth Benzie (Benie) <k.benzie83@gmail.com>
Extends the CUDA adapter to allow for unique addressing modes per dimension
Modifies:
image.cpp
sampler.hpp
sampler.cpp
Corresponding intel-llvm PR: intel/llvm#12109