Fix scanning out-of-bounds items in OpenMP scan#9759
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughOpenMP scan now derives ChangesOMP scan fix
Assessment against linked issues
Out-of-scope changesComment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
thrust/thrust/system/omp/detail/scan.h (1)
115-115: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valuesuggestion:
first_elemis never mutated; mark itconst. As per coding guidelines, "All variables that are not modified must be declaredconst".- accum_t first_elem = *(first + start); + const accum_t first_elem = *(first + start);Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: cff36059-3fd5-4e46-b97b-ceb100b7d0e9
📒 Files selected for processing (1)
thrust/thrust/system/omp/detail/scan.h
This comment has been minimized.
This comment has been minimized.
|
Sorry fat-fingered approval before adding comment. Could you add a test that exercises the bug? |
The existing test covers the bug if run with a CPU of at least 128 threads :) |
🥳 CI Workflow Results🟩 Finished in 23h 46m: Pass: 100%/119 | Total: 1d 02h | Max: 1h 08m | Hits: 69%/252077See results here. |
Fixes: #9725