-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Partial addition of 'const' to all interfaces above the (micro)kernel…
…s. (#625) Details: - Added 'const' qualifier to applicable function arguments wherever the the pointed-to object is not internally modified. This change affects all interfaces that reside above the level of the (micro)kernels. - Typecast certain function return values to discard 'const' qualifier. - Removed 'restrict' from various arguments, including cntx_t*, auxinfo_t*, rntm_t*, thrinfo_t*, mem_t*, and others - Removed parts of some APIs, such as bli_cntx_*(), due to limited use. - Merged some variable declarations with their corresponding initialization statements. - Whitespace changes.
- Loading branch information
1 parent
ae10d94
commit 9fea633
Showing
446 changed files
with
19,651 additions
and
19,345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
9fea633
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.
Commit causes this error on zen3
kernels/zen/3/bli_gemm_small.c:104:7: error: conflicting types for ‘bli_gemm_small’
104 | err_t bli_gemm_small
| ^~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
make: *** [Makefile:653: obj/zen3/kernels/zen/3/bli_gemm_small.o] Error 1
Compiling obj/zen3/kernels/zen/3/bli_gemm_small.o ('zen3' CFLAGS for kernels)
kernels/zen/3/bli_gemm_small.c:104:7: error: conflicting types for ‘bli_gemm_small’
104 | err_t bli_gemm_small
| ^~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
9fea633
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.
@fgvanzee ? I thought the "gemm small" codepath was disabled by default? In any case the fix should be simple: making sure the interfaces are consistent w.r.t. const correctness.
9fea633
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.
bli_gemm_small()
is not my codepath (sup). It's AMD's.9fea633
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.
But yes, I thought it was disabled by default, too, at least in vanilla.
9fea633
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.
I've applied a fix in 6431c9e, although we still need to decide whether the
gemm_small
code path should be enabled by default in vanilla BLIS. 🤔