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] Fix CRT static test bug #5293

Merged
merged 4 commits into from
Apr 9, 2020
Merged

[BUGFIX] Fix CRT static test bug #5293

merged 4 commits into from
Apr 9, 2020

Conversation

tqchen
Copy link
Member

@tqchen tqchen commented Apr 9, 2020

Fixed a segfault caused by wrongly assigning the address of the array pointer to the shape instead of the array. This problem was revealed by a compiler warning .

This PR fixes the recent compiler flaky error on i386

@tqchen
Copy link
Member Author

tqchen commented Apr 9, 2020

@tqchen
Copy link
Member Author

tqchen commented Apr 9, 2020

Followup #5294

Copy link
Contributor

@tmoreau89 tmoreau89 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 the fix, LGTM

@@ -103,6 +104,6 @@ int main(int argc, char **argv) {
(t3.tv_sec-t2.tv_sec)*1000000 + (t3.tv_usec-t2.tv_usec)/1000.f,
Copy link
Member

Choose a reason for hiding this comment

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

1000000 should change to 1000 since this is second to ms conversion.

@@ -118,6 +120,6 @@ int main(int argc, char **argv) {

Copy link
Member

Choose a reason for hiding this comment

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

Same here.

@tqchen
Copy link
Member Author

tqchen commented Apr 9, 2020

Thanks @masahi @zhiics @mehrdadhe @tmoreau89 this pr is now merged

trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Apr 16, 2020
* [CI][DOCS] Make sure to refresh the cython part

* [BUGFIX] Fix CRT static test bug

* Fix demo_static

* resolve review comment
zhiics pushed a commit to neo-ai/tvm that referenced this pull request Apr 17, 2020
* [CI][DOCS] Make sure to refresh the cython part

* [BUGFIX] Fix CRT static test bug

* Fix demo_static

* resolve review comment
@tqchen tqchen deleted the crt branch April 21, 2020 00:00
dpankratz pushed a commit to dpankratz/incubator-tvm that referenced this pull request Apr 24, 2020
* [CI][DOCS] Make sure to refresh the cython part

* [BUGFIX] Fix CRT static test bug

* Fix demo_static

* resolve review comment
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