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

[Codegen] Use "target.build.$TARGET_KIND" for all codegen functions. #8071

Merged
merged 2 commits into from
Jun 4, 2021

Conversation

Lunderberg
Copy link
Contributor

Noticed while writing documentation that not all codegen functions
follow the same naming pattern. Made changes below for consistency,
ease of locating a codegen function.

  • Removed special case for "micro_dev" target. Instead, register
    BuildCHost as both "target.build.c" and "target.build.micro_dev".

  • Renamed "target.build.build.aocl_sw_emu" to
    "target.build.aocl_sw_emu". Appears to be a typo introduced in
    #841725cc585

@Lunderberg
Copy link
Contributor Author

@areusch On second thought, it looks like the special case for a micro_dev target should be removed rather than implemented elsewhere, since your commit 745e542 removed the micro_dev target entirely. Is that correct?

@areusch
Copy link
Contributor

areusch commented May 19, 2021

@Lunderberg yeah micro_dev can go away now

@Lunderberg
Copy link
Contributor Author

Lunderberg commented May 19, 2021

@areusch Awesome. In that case, removing the special case for micro_dev, and removing lots of other references to avoid any future confusion.

@Lunderberg
Copy link
Contributor Author

Potential reviewers: @areusch @tqchen

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 for cleaning this up, @Lunderberg !

- Removed special case for "micro_dev" target.  Instead, register
  BuildCHost as both "target.build.c" and "target.build.micro_dev".

- Renamed "target.build.build.aocl_sw_emu" to
  "target.build.aocl_sw_emu".  Appears to be a typo introduced in
  #841725cc585
device_api.micro_dev was removed in
745e542, but several references still
remained.
@Lunderberg
Copy link
Contributor Author

Thank you! Rebased this morning to remove conflict with main, no other changes made from the approved version.

@areusch areusch merged commit a74d0fe into apache:main Jun 4, 2021
@Lunderberg Lunderberg deleted the target_build branch June 4, 2021 17:38
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Jun 17, 2021
…pache#8071)

* [Codegen] Use "target.build.$TARGET_KIND" for all codegen functions.

- Removed special case for "micro_dev" target.  Instead, register
  BuildCHost as both "target.build.c" and "target.build.micro_dev".

- Renamed "target.build.build.aocl_sw_emu" to
  "target.build.aocl_sw_emu".  Appears to be a typo introduced in
  #841725cc585

* [micro_dev] Removed references to non-existent micro_dev

device_api.micro_dev was removed in
745e542, but several references still
remained.

Co-authored-by: Eric Lunderberg <elunderberg@octoml.ai>
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Jun 17, 2021
…pache#8071)

* [Codegen] Use "target.build.$TARGET_KIND" for all codegen functions.

- Removed special case for "micro_dev" target.  Instead, register
  BuildCHost as both "target.build.c" and "target.build.micro_dev".

- Renamed "target.build.build.aocl_sw_emu" to
  "target.build.aocl_sw_emu".  Appears to be a typo introduced in
  #841725cc585

* [micro_dev] Removed references to non-existent micro_dev

device_api.micro_dev was removed in
745e542, but several references still
remained.

Co-authored-by: Eric Lunderberg <elunderberg@octoml.ai>
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.

2 participants