Skip to content

cpu - remove vectorize warnings for Clang -O3#1831

Merged
jeremylt merged 1 commit into
mainfrom
jeremy/vectorize-warnings
Jun 3, 2025
Merged

cpu - remove vectorize warnings for Clang -O3#1831
jeremylt merged 1 commit into
mainfrom
jeremy/vectorize-warnings

Conversation

@jeremylt

Copy link
Copy Markdown
Member

I don't think this has any performance issues, but in this branch I've tried to silence Clang's vectorization warnings at -O3 by only marking the innermost restriction loops with CeedPragmaSIMD. Given the difficulty of actually vectorizing nested loops unless the inner loop range is fixed, I'd guess this has no effect on our actual performance?

@jedbrown jedbrown left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't anticipate any impact on performance from removing the pragma in these positions.

Comment thread backends/ref/ceed-ref-restriction.c
@jeremylt
jeremylt force-pushed the jeremy/vectorize-warnings branch from b596856 to b79896b Compare May 30, 2025 20:52
@jeremylt

jeremylt commented Jun 3, 2025

Copy link
Copy Markdown
Member Author

Testing BP4 on a 20x20x20 box mesh with order 3 elements in Ratel, `OPT="-O2 -march=native"

branch Run 1 Run 2 Run 3
PR 14.7366 14.6727 14.3249
main 14.5386 14.6759 14.3564

And BP4 with a 30x30x30 box mesh

branch Run 1 Run 2 Run 3
PR 51.647 52.3631 52.1061
main 50.7796 50.9125 51.9182

but without the second commit, BP4 with a 20x20x20 box mesh

branch Run 1 Run 2 Run 3
PR 14.5392 14.9105 14.257

And BP4 with a 30x30x30 box mesh

branch Run 1 Run 2 Run 3
PR 50.802 50.5384 50.8647

So I'm dropping the second commit and merging

@jeremylt
jeremylt force-pushed the jeremy/vectorize-warnings branch from b79896b to 4baa7ae Compare June 3, 2025 16:27
@jeremylt
jeremylt merged commit cd0c1a1 into main Jun 3, 2025
@jeremylt
jeremylt deleted the jeremy/vectorize-warnings branch June 3, 2025 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants