Skip to content

Conversation

lhutton1
Copy link
Contributor

The support library currently supports enabling the experimental cascading compiler option via an environment variable FORCE_EXPERIMENTAL_COMPILER. This commit exposes the ability to enable this option through TVMC.

@tvm-bot
Copy link
Collaborator

tvm-bot commented Nov 16, 2022

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

  • cc @ashutosh-arm See #10317 for details
  • Built docs for commit c705665 can be found here.

Generated by tvm-bot

Copy link
Contributor

@asparkhi asparkhi left a comment

Choose a reason for hiding this comment

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

Thanks @lhutton1. I have added a few questions/comments.

// Now set the required build flags
sl::CompilationOptions options = CreateOptions();
// Finally compile the network
// Set the experimental compiler if enabled, for now this is not part of the
Copy link
Contributor

Choose a reason for hiding this comment

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

Setting and unsetting the variable from here means that its being set multiple times during the compilation. Is there a better place from where it gets set/unset only once?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

my thinking was to reduce the scope of the environment variable to the support library, since its not prefixed in any way there's always the (small!) chance the same variable can be used elsewhere. We could move the scope to the NPU codegen instead

Copy link
Contributor

Choose a reason for hiding this comment

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

Another option could be to look for this option from just the tvmc frontend functions and set/unset it from python for the entire invocation of the tvmc. Maybe that leaves the EthosN code cleaner. Are there any downsides of doing that though? 🤔

@lhutton1 lhutton1 force-pushed the experimental-compiler branch from 43cb690 to c705665 Compare November 23, 2022 12:08
The support library currently supports enabling the experimental
cascading compiler option via an environment variable
`FORCE_EXPERIMENTAL_COMPILER`. This commit exposes the ability to
enable this option through TVMC.

Change-Id: Ie5667a300f35f99bc8f92d780a56894ef9bbe3ad
* Remove unused code
* Add negative test case

Change-Id: I5e12d070554954e320b4d15c02d5e2ada179fce5
@lhutton1 lhutton1 force-pushed the experimental-compiler branch from c705665 to fc47f98 Compare December 12, 2022 10:33
Copy link
Contributor

@asparkhi asparkhi left a comment

Choose a reason for hiding this comment

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

Thanks @lhutton1 for addressing the comments.

@asparkhi asparkhi merged commit c5911a6 into apache:main Dec 15, 2022
fzi-peccia pushed a commit to fzi-peccia/tvm that referenced this pull request Mar 27, 2023
* [ETHOSN] Add support for experimental compiler option

The support library currently supports enabling the experimental
cascading compiler option via an environment variable
`FORCE_EXPERIMENTAL_COMPILER`. This commit exposes the ability to
enable this option through TVMC.
mikeseven pushed a commit to mikeseven/tvm that referenced this pull request Sep 27, 2023
* [ETHOSN] Add support for experimental compiler option

The support library currently supports enabling the experimental
cascading compiler option via an environment variable
`FORCE_EXPERIMENTAL_COMPILER`. This commit exposes the ability to
enable this option through TVMC.
@lhutton1 lhutton1 deleted the experimental-compiler branch December 8, 2023 09:03
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