-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Conversation
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.
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.
Generated by tvm-bot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@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? |
@tvm-bot rerun |
@liangfu Please review this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@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". |
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