-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Better documentation for performance annotations #17700
Conversation
Both :obj:`@simd` and :obj:`@inbounds` do a simple rewrite of the expression | ||
and delegate the optimizations to compiler, much like ``:meta`` expressions. | ||
This means they merely give the compiler license to optimize. Whether | ||
it actually does so depends on the compiler. As consequence how you |
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.
"As consequence" is not grammatical. Actually, I think you can just delete the "As consequence..." sentence.
Thank you for the much needed corrections |
I think is ready for merging |
@@ -932,6 +927,13 @@ On a computer with a 2.4GHz Intel Core i5 processor, this produces:: | |||
GFlop = 1.9467069505224963 | |||
GFlop (SIMD) = 17.578554163920018 | |||
|
|||
Certain preconditions need to be met before using some of these macros. | |||
Both :obj:`@simd` and :obj:`@inbounds` do a simple rewrite of the expression | |||
and delegate the optimizations to compiler, much like ``:meta`` expressions. |
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.
delegate the optimizations to the compiler
Please reopen this against master. |
Note, for future reference, that it is better to do a forced push to an existing PR than to open a new PR. |
Not when the target branch is wrong. |
That sentence might make you think applying it to a function will remove bounds check.
which is not true as seen here