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

[Bugfix][VTA] Fix FSIM compile error on macOS #14655

Merged
merged 4 commits into from Nov 6, 2023
Merged

Conversation

xhmelon
Copy link
Contributor

@xhmelon xhmelon commented Apr 18, 2023

VTA FSIM could not be built on macOS, for it leverages malloc.h and memalign, yet both have been deprecated and are not provided by macOS. This issue was captured in #13173.

This commit stops including malloc.h in VTA Runtime as stdlib.h has provided functions we need.

This commit uses posix_memalign instead of memalign. It is a portable standard function.

cc @vegaluisjose @liangfu

VTA FSIM could not be built on macOS, for it leverages malloc.h and
memalign, yet both have been deprecated and are not provided by
macOS. This issue was captured in apache#13173.

This commit stops including malloc.h in VTA Runtime as stdlib.h has
provided functions we need.

This commit uses posix_memalign instead of memalign. It is a portable standard function.
@tvm-bot
Copy link
Collaborator

tvm-bot commented Apr 18, 2023

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.

  • No users to tag found in teams: bugfix, vta See #10317 for details

Generated by tvm-bot

@xhmelon xhmelon changed the title [Bugfix][VTA] Fix FSIM compile error on macOS. [Bugfix][VTA] Fix FSIM compile error on macOS Apr 18, 2023
Copy link
Member

@vegaluisjose vegaluisjose left a comment

Choose a reason for hiding this comment

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

LGTM

@xhmelon
Copy link
Contributor Author

xhmelon commented Jun 19, 2023

@vegaluisjose @vinx13 @masahi Errors from gpu/pr-head and lint/pr-head have prevented merging. The gpu/pr-head failed to pull the git repo, and I can not rerun the @tvm-bot myself. Meanwhile, I couldn't find out what's wrong with lint/pr-head from the log, could you give any insight?

@xhmelon
Copy link
Contributor Author

xhmelon commented Jun 21, 2023

@tvm-bot rerun

@xhmelon
Copy link
Contributor Author

xhmelon commented Nov 5, 2023

@liangfu Please review this PR.

Copy link
Member

@liangfu liangfu left a comment

Choose a reason for hiding this comment

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

LGTM

@xhmelon
Copy link
Contributor Author

xhmelon commented Nov 6, 2023

@liangfu @vegaluisjose It seems that merging the PR requires your permission, right? All tests passed, but there is still a prompt "1 workflow awaiting approval".

@tqchen tqchen merged commit 03f7b3b into apache:main Nov 6, 2023
14 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.

None yet

5 participants