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

VMulCAddC-Replaced yaml files with header table #7411

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

nitheshsrikanth-mcw
Copy link

No description provided.


#ifndef XNN_UKERNEL
#define XNN_UKERNEL(arch_flags, ukernel, row_tile,channel_tile, datatype) \
XNN_UKERNEL_WITH_PARAMS(arch_flags, ukernel,row_tile,channel_tile , datatype, void, /*init_params=*/nullptr)
Copy link
Collaborator

@dsharlet dsharlet Nov 4, 2024

Choose a reason for hiding this comment

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

Commas should immediately follow prior value, and then space after comma:

XNN_UKERNEL_WITH_PARAMS(arch_flags, ukernel,row_tile, channel_tile, datatype, void, /*init_params=*/nullptr)

Please fix other instances in this file too (many above and below).

Copy link
Contributor

Choose a reason for hiding this comment

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

Same comments as the other PRs

@nitheshsrikanth-mcw nitheshsrikanth-mcw marked this pull request as ready for review November 12, 2024 03:35
copybara-service bot pushed a commit that referenced this pull request Nov 12, 2024
--
47192e6 by nithesh <[email protected]>:

VMulCAddC-Replaced yaml files with header table
Replaced yaml files with header table for vmulcadd op

--
d8dd82d by nithesh <[email protected]>:

Addressed review comments

--
cf7f1c3 by nithesh <[email protected]>:

Addressed review comments

FUTURE_COPYBARA_INTEGRATE_REVIEW=#7411 from nitheshsrikanth-mcw:xnn_vmulcadd 1f6456a
PiperOrigin-RevId: 695565047
copybara-service bot pushed a commit that referenced this pull request Nov 12, 2024
--
47192e6 by nithesh <[email protected]>:

VMulCAddC-Replaced yaml files with header table
Replaced yaml files with header table for vmulcadd op

--
d8dd82d by nithesh <[email protected]>:

Addressed review comments

--
cf7f1c3 by nithesh <[email protected]>:

Addressed review comments

FUTURE_COPYBARA_INTEGRATE_REVIEW=#7411 from nitheshsrikanth-mcw:xnn_vmulcadd 1f6456a
PiperOrigin-RevId: 695565047
copybara-service bot pushed a commit that referenced this pull request Nov 12, 2024
--
47192e6 by nithesh <[email protected]>:

VMulCAddC-Replaced yaml files with header table
Replaced yaml files with header table for vmulcadd op

--
d8dd82d by nithesh <[email protected]>:

Addressed review comments

--
cf7f1c3 by nithesh <[email protected]>:

Addressed review comments

FUTURE_COPYBARA_INTEGRATE_REVIEW=#7411 from nitheshsrikanth-mcw:xnn_vmulcadd 1f6456a
PiperOrigin-RevId: 695565047
@dsharlet
Copy link
Collaborator

Update kernel declarations?

@nitheshsrikanth-mcw
Copy link
Author

@dsharlet Thank you for your comment. I did attempt to update the kernel declarations as suggested, but I encountered an issue during the process that I wasn't able to resolve today. I will revisit the task tomorrow and work on resolving it then.

@nitheshsrikanth-mcw
Copy link
Author

@dsharlet i have updated the kernel declarations. Thanks!

#define XNN_TEST_VMULCADDC_ROW_DIV(ukernel, arch_flags, row_tile, channels_tile, datatype, params_type, init_params) \
TEST(ukernel, ROW_div) \
{ \
for (size_t rows = row_tile * 2; rows <= row_tile * 4; rows += row_tile) { \
Copy link
Contributor

Choose a reason for hiding this comment

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

TEST_REQUIRES_ARCH_FLAGS(arch_flags)? Does this pass tests locally for you?

Choose a reason for hiding this comment

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

Thanks for pointing out the missing TEST_REQUIRES_ARCH_FLAGS(arch_flags). The issue with the illegal instruction for AVX-512 has now been resolved and now the tests are passing.

XNN_INTERNAL void fn_name( \
size_t m, \
size_t c, \
const xnn_float16* x, \
const xnn_float16* x, \
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should be able to use datatype here, and #include both headers with the one XNN_UKERNEL definition.

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.

3 participants