Skip to content
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

Add documentation for plugins #820

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Add documentation for plugins #820

wants to merge 4 commits into from

Conversation

devinamatthews
Copy link
Member

No description provided.

- User-registered kernels are contained in the `ukr_t`, `bszid_t`, and `ukr_pref_t` enums, so prefer `siz_t` for all functions taking kernel ID parameters.
- However, because enum constants are by default `int` (or even smaller), while `siz_t` will typically be `long long unsigned int`, this causes problems with variadic arguments in `bli_cntx_set_ukrs` and friends (predefined vs. user-registered kernel IDs will be incompatible types).
- Solution: define `BLIS_VA_END` explicitly as `(siz_t)-1` and add an enum entry equal to `BLIS_VA_END` (=`0xf...f`) to each affected enum in order to force the underlying enum type to be as wide as `siz_t`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant