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

Merged
merged 11 commits into from
Dec 20, 2024

Conversation

nitheshsrikanth-mcw
Copy link
Contributor

No description provided.

@nitheshsrikanth-mcw nitheshsrikanth-mcw force-pushed the xnn_vmulcadd branch 2 times, most recently from 8bfc637 to 47192e6 Compare November 4, 2024 14:06

#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).

@nitheshsrikanth-mcw nitheshsrikanth-mcw force-pushed the xnn_vmulcadd branch 5 times, most recently from 9669c60 to d8dd82d Compare November 5, 2024 15:22
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 draft November 7, 2024 15:07
@nitheshsrikanth-mcw nitheshsrikanth-mcw force-pushed the xnn_vmulcadd branch 5 times, most recently from ac65c37 to cf7f1c3 Compare November 8, 2024 10:39
@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 <nithesh.srikanth@multicorewareinc.com>:

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

--
d8dd82d by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed review comments

--
cf7f1c3 by nithesh <nithesh.srikanth@multicorewareinc.com>:

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 <nithesh.srikanth@multicorewareinc.com>:

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

--
d8dd82d by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed review comments

--
cf7f1c3 by nithesh <nithesh.srikanth@multicorewareinc.com>:

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 <nithesh.srikanth@multicorewareinc.com>:

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

--
d8dd82d by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed review comments

--
cf7f1c3 by nithesh <nithesh.srikanth@multicorewareinc.com>:

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
Contributor 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 nitheshsrikanth-mcw force-pushed the xnn_vmulcadd branch 5 times, most recently from 02786a9 to 24e9a1d Compare November 20, 2024 05:33
@dsharlet
Copy link
Collaborator

@nitheshsrikanth-mcw please take a look at the tests, for example:

/home/runner/work/XNNPACK/XNNPACK/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c:18:6: error: conflicting types for ‘xnn_f16_vmulcaddc_minmax_ukernel_c8__neonfp16arith_2x’; have ‘void(size_t,  size_t,  const xnn_float16 * restrict,  size_t,  const xnn_float16 * restrict,  xnn_float16 * restrict,  size_t,  const union xnn_f16_minmax_params * restrict)’ {aka ‘void(unsigned int,  unsigned int,  const xnn_float16 * restrict,  unsigned int,  const xnn_float16 * restrict,  xnn_float16 * restrict,  unsigned int,  const union xnn_f16_minmax_params * restrict)’}
   18 | void xnn_f16_vmulcaddc_minmax_ukernel_c8__neonfp16arith_2x(

But they are all failing.

@dsharlet
Copy link
Collaborator

Why would including next-prime.h in test/vmulcaddc-microkernel-tester.h address a compilation error in a microkernel?

Can you build and run this branch locally, in any configuration?

@nitheshsrikanth-mcw
Copy link
Contributor Author

It's working for x86 now after updating the next prime header (the error was related to it). For ARM, we need to check, and I'll update this soon.

copybara-service bot pushed a commit that referenced this pull request Dec 19, 2024
--
fd9d24d by nithesh <nithesh.srikanth@multicorewareinc.com>:

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

--
4fb020d by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed review comments

--
eb27915 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed review comments

--
b06ecd1 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Address CI failed checks

--
2fb29c5 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed kernel declarations comment

--
a4d5e62 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Resolve "illegal instructions" for AVX512F tests

--
76e4518 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Add support for build bazel

--
a472377 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Defined kernel declrations to use all datatype

--
e6882d4 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed the merge issue

--
7799d9a by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed the test case issue

--
6a2b4d2 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Resolve check fails for ARM Arch

FUTURE_COPYBARA_INTEGRATE_REVIEW=#7411 from nitheshsrikanth-mcw:xnn_vmulcadd 6a2b4d2
PiperOrigin-RevId: 707992277
#define XNN_TEST_VMULCADDC_ROW_DIV(ukernel, arch_flags, row_tile_, channel_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
Collaborator

Choose a reason for hiding this comment

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

This is missing TEST_REQUIRES_ARCH_FLAGS(arch_flags) in all tests.

copybara-service bot pushed a commit that referenced this pull request Dec 19, 2024
--
fd9d24d by nithesh <nithesh.srikanth@multicorewareinc.com>:

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

--
4fb020d by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed review comments

--
eb27915 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed review comments

--
b06ecd1 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Address CI failed checks

--
2fb29c5 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed kernel declarations comment

--
a4d5e62 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Resolve "illegal instructions" for AVX512F tests

--
76e4518 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Add support for build bazel

--
a472377 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Defined kernel declrations to use all datatype

--
e6882d4 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed the merge issue

--
7799d9a by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed the test case issue

--
6a2b4d2 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Resolve check fails for ARM Arch

FUTURE_COPYBARA_INTEGRATE_REVIEW=#7411 from nitheshsrikanth-mcw:xnn_vmulcadd 6a2b4d2
PiperOrigin-RevId: 707992277
copybara-service bot pushed a commit that referenced this pull request Dec 19, 2024
--
fd9d24d by nithesh <nithesh.srikanth@multicorewareinc.com>:

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

--
4fb020d by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed review comments

--
eb27915 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed review comments

--
b06ecd1 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Address CI failed checks

--
2fb29c5 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed kernel declarations comment

--
a4d5e62 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Resolve "illegal instructions" for AVX512F tests

--
76e4518 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Add support for build bazel

--
a472377 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Defined kernel declrations to use all datatype

--
e6882d4 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed the merge issue

--
7799d9a by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed the test case issue

--
6a2b4d2 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Resolve check fails for ARM Arch

FUTURE_COPYBARA_INTEGRATE_REVIEW=#7411 from nitheshsrikanth-mcw:xnn_vmulcadd 6a2b4d2
PiperOrigin-RevId: 707992277
copybara-service bot pushed a commit that referenced this pull request Dec 20, 2024
--
fd9d24d by nithesh <nithesh.srikanth@multicorewareinc.com>:

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

--
4fb020d by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed review comments

--
eb27915 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed review comments

--
b06ecd1 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Address CI failed checks

--
2fb29c5 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed kernel declarations comment

--
a4d5e62 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Resolve "illegal instructions" for AVX512F tests

--
76e4518 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Add support for build bazel

--
a472377 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Defined kernel declrations to use all datatype

--
e6882d4 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed the merge issue

--
7799d9a by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed the test case issue

--
a4370dc by nithesh <nithesh.srikanth@multicorewareinc.com>:

Resolve check fails for ARM Arch

FUTURE_COPYBARA_INTEGRATE_REVIEW=#7411 from nitheshsrikanth-mcw:xnn_vmulcadd a4370dc
PiperOrigin-RevId: 707992277
copybara-service bot pushed a commit that referenced this pull request Dec 20, 2024
--
fd9d24d by nithesh <nithesh.srikanth@multicorewareinc.com>:

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

--
4fb020d by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed review comments

--
eb27915 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed review comments

--
b06ecd1 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Address CI failed checks

--
2fb29c5 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed kernel declarations comment

--
a4d5e62 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Resolve "illegal instructions" for AVX512F tests

--
76e4518 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Add support for build bazel

--
a472377 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Defined kernel declrations to use all datatype

--
e6882d4 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed the merge issue

--
7799d9a by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed the test case issue

--
920cc0f by nithesh <nithesh.srikanth@multicorewareinc.com>:

Resolve check fails for ARM Arch

FUTURE_COPYBARA_INTEGRATE_REVIEW=#7411 from nitheshsrikanth-mcw:xnn_vmulcadd 920cc0f
PiperOrigin-RevId: 707992277
copybara-service bot pushed a commit that referenced this pull request Dec 20, 2024
--
fd9d24d by nithesh <nithesh.srikanth@multicorewareinc.com>:

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

--
4fb020d by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed review comments

--
eb27915 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed review comments

--
b06ecd1 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Address CI failed checks

--
2fb29c5 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed kernel declarations comment

--
a4d5e62 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Resolve "illegal instructions" for AVX512F tests

--
76e4518 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Add support for build bazel

--
a472377 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Defined kernel declrations to use all datatype

--
e6882d4 by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed the merge issue

--
7799d9a by nithesh <nithesh.srikanth@multicorewareinc.com>:

Addressed the test case issue

--
920cc0f by nithesh <nithesh.srikanth@multicorewareinc.com>:

Resolve check fails for ARM Arch

FUTURE_COPYBARA_INTEGRATE_REVIEW=#7411 from nitheshsrikanth-mcw:xnn_vmulcadd 920cc0f
PiperOrigin-RevId: 707992277
@copybara-service copybara-service bot merged commit c134442 into google:master Dec 20, 2024
21 checks passed
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