Skip to content

[BUGFIX] Fix CRT static test bug - #5293

Merged
tqchen merged 4 commits into
apache:masterfrom
tqchen:crt
Apr 9, 2020
Merged

[BUGFIX] Fix CRT static test bug#5293
tqchen merged 4 commits into
apache:masterfrom
tqchen:crt

Conversation

@tqchen

@tqchentqchen commented Apr 9, 2020

Copy link
Copy Markdown
Member

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
Copy Markdown
MemberAuthor

@tqchentqchen mentioned this pull request Apr 9, 2020
@tqchen

Copy link
Copy Markdown
MemberAuthor

Followup #5294

@tmoreau89tmoreau89 left a comment

Copy link
Copy Markdown
Contributor

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

Comment threadapps/bundle_deploy/demo_static.c Outdated
@@ -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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
MemberAuthor

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 freeto 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

@tqchen@zhiics@tmoreau89@mehrdadh