Skip to content

Conversation

@sergio-grovety
Copy link
Contributor

  • Improved implementaion of gemm function for conv2d
  • Removed %4 restriction for channels
  • Added test case to verify SMLAD intrinsic speed acceleration

 - Improved implementaion of gemm function for conv2d
 - Removed %4 restriction for channels
 - Added test case to verify SMLAD intrinsic speed acceleration

Signed-off-by: Sergey Smirnov <Sergey@grovety.com>
Copy link
Member

@mehrdadh mehrdadh left a comment

Choose a reason for hiding this comment

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

Thanks for this great contribution. I did an initial review. I will try to run this on hardware and get back with more details.

Copy link
Contributor

@areusch areusch left a comment

Choose a reason for hiding this comment

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

thanks @sergey-grovety for pushing this up! a couple questions

cc @manupa-arm @u99127 is anyone available to look at this from the ARM team?

sergio-grovety and others added 3 commits September 14, 2021 02:40
 - Improved implementaion of gemm function for conv2d
 - Removed %4 restriction for channels
 - Added test case to verify SMLAD intrinsic speed acceleration

Signed-off-by: Sergey Smirnov <Sergey@grovety.com>
@mehrdadh
Copy link
Member

for the test image maybe you could reuse this image: https://github.com/apache/tvm/blob/main/tests/micro/testdata/mnist/digit-2.jpg

@sergio-grovety
Copy link
Contributor Author

for the test image maybe you could reuse this image: https://github.com/apache/tvm/blob/main/tests/micro/testdata/mnist/digit-2.jpg

Yes, sure.

sergio-grovety and others added 5 commits September 27, 2021 04:22
Copy link
Member

@mehrdadh mehrdadh left a comment

Choose a reason for hiding this comment

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

Thanks for this change. LGTM!
Just added a clarification question.

Copy link
Contributor

@areusch areusch left a comment

Choose a reason for hiding this comment

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

@sergey-grovety not sure if we should land #9092 first and refactor test logic there? otherwise aside from the two comments i think we can merge and move forwards.

pytest tests/micro/zephyr/test_zephyr_aot.py --zephyr-board=${board}
fi

pytest tests/micro/zephyr/test_zephyr_armv7m.py --zephyr-board=${board}
Copy link
Contributor

Choose a reason for hiding this comment

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

could you move this to tests/scripts/task_python_microtvm.sh? This is just the base-box pre-release test, where we just want to do a smoke test to make sure that Zephyr is working with attached hardware.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems moving to tests/scripts/task_python_microtvm.sh make no sense. The only supported platform there is qemu_x86 for now. We don't run our test with it. And mps2_an521 disabled.
BTW, all tests in tests/micro/zephyr must be called, isn't it?

Copy link
Contributor

Choose a reason for hiding this comment

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

we discussed offline and have decided to proceed with local testing in this PR. in a follow-on, we will add support for Corstone 300 tests.

@sergio-grovety
Copy link
Contributor Author

not sure if we should land #9092 first and refactor test logic there? otherwise aside from the two comments i think we can merge and move forwards.

Yes. Need to clean up from this.


if board not in [
"mps2_an521",
"stm32f746xx_disco",
Copy link
Member

Choose a reason for hiding this comment

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

this board name has changed recently to stm32f746g_disco.
https://github.com/apache/tvm/pull/8998/files

Copy link
Contributor

Choose a reason for hiding this comment

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

@sergey-grovety given the CI is green and upcoming work on the test strategy feel free to address this in a follow-on.

@areusch areusch merged commit c51f429 into apache:main Sep 30, 2021
@areusch
Copy link
Contributor

areusch commented Sep 30, 2021

thanks @sergey-grovety and team!

ylc pushed a commit to ylc/tvm that referenced this pull request Jan 7, 2022
* [microTVM] Update support for ARMv7m intrinsic

 - Improved implementaion of gemm function for conv2d
 - Removed %4 restriction for channels
 - Added test case to verify SMLAD intrinsic speed acceleration

Signed-off-by: Sergey Smirnov <Sergey@grovety.com>

* [microTVM] Update support for ARMv7m intrinsic

 - Improved implementaion of gemm function for conv2d
 - Removed %4 restriction for channels
 - Added test case to verify SMLAD intrinsic speed acceleration

Signed-off-by: Sergey Smirnov <Sergey@grovety.com>

* Implemented discussed changes.

* Removed unnecessary test files.

* Formatting fixed.

* Formatting fixed2.

* Formatting fixed3.

* Formatting fixed4.

* Formatting fixed5.

* Fixed test time result checking.

* Check rebuild.

* Formatting fixed.

* Formatting fixed.

* [microTVM] Update support for ARMv7m intrinsic

 - Improved implementaion of gemm function for conv2d
 - Removed %4 restriction for channels
 - Added test case to verify SMLAD intrinsic speed acceleration

Signed-off-by: Sergey Smirnov <Sergey@grovety.com>

* Implemented discussed changes.

* Removed unnecessary test files.

* Formatting fixed.

* Formatting fixed2.

* Formatting fixed3.

* Formatting fixed4.

* Formatting fixed5.

* Fixed test time result checking.

* Check rebuild.

* Formatting fixed.

* Issue 8717 Add schedule for depthwise_conv2d_nhwc

* Resolve merge conflict.

* Resolve merge conflicts.

* Fixed formatting.

* From Issue 8717//
Fixed micro model library test. Checking size reduced to 16 bytes from 2466816.

* From Issue 8717.
Removed changes.

* From Issue 8717. Fixed typo.

* Fixed import.

* Fixed import and method call.

* Added QEMU testing comment.

* Fixed ZEPHYR_BOARD usage.

* Fixed tests. Removed issue 8717 changes.

* Formatting fixed.

* Removed test call from base_box_test.sh
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 2022
* [microTVM] Update support for ARMv7m intrinsic

 - Improved implementaion of gemm function for conv2d
 - Removed %4 restriction for channels
 - Added test case to verify SMLAD intrinsic speed acceleration

Signed-off-by: Sergey Smirnov <Sergey@grovety.com>

* [microTVM] Update support for ARMv7m intrinsic

 - Improved implementaion of gemm function for conv2d
 - Removed %4 restriction for channels
 - Added test case to verify SMLAD intrinsic speed acceleration

Signed-off-by: Sergey Smirnov <Sergey@grovety.com>

* Implemented discussed changes.

* Removed unnecessary test files.

* Formatting fixed.

* Formatting fixed2.

* Formatting fixed3.

* Formatting fixed4.

* Formatting fixed5.

* Fixed test time result checking.

* Check rebuild.

* Formatting fixed.

* Formatting fixed.

* [microTVM] Update support for ARMv7m intrinsic

 - Improved implementaion of gemm function for conv2d
 - Removed %4 restriction for channels
 - Added test case to verify SMLAD intrinsic speed acceleration

Signed-off-by: Sergey Smirnov <Sergey@grovety.com>

* Implemented discussed changes.

* Removed unnecessary test files.

* Formatting fixed.

* Formatting fixed2.

* Formatting fixed3.

* Formatting fixed4.

* Formatting fixed5.

* Fixed test time result checking.

* Check rebuild.

* Formatting fixed.

* Issue 8717 Add schedule for depthwise_conv2d_nhwc

* Resolve merge conflict.

* Resolve merge conflicts.

* Fixed formatting.

* From Issue 8717//
Fixed micro model library test. Checking size reduced to 16 bytes from 2466816.

* From Issue 8717.
Removed changes.

* From Issue 8717. Fixed typo.

* Fixed import.

* Fixed import and method call.

* Added QEMU testing comment.

* Fixed ZEPHYR_BOARD usage.

* Fixed tests. Removed issue 8717 changes.

* Formatting fixed.

* Removed test call from base_box_test.sh
@sergio-grovety sergio-grovety deleted the update-arm-simd-intrinsic branch October 26, 2022 09:20
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.

4 participants