This patch fixes a bug introduced by D142586, which landed as
434992c96ed1. The fix was to only look for alignments that are powers
of 2. See the new test case for details.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Add this to the commit message as it is the important part:
The fix was to only look for alignments that are powers of 2.
LGTM
openmp/libomptarget/src/omptarget.cpp | ||
---|---|---|
112 | Shouldn't this just be looking for the first non zero bit? Like __builtin_ffsl or similar? |
openmp/libomptarget/src/omptarget.cpp | ||
---|---|---|
112 | That does seem like it would be more efficient. I've not used it before, but it behaves in my CI. Does the new code look reasonable to you? |
Shouldn't this just be looking for the first non zero bit? Like __builtin_ffsl or similar?