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

[ir] Fix compilation crash when offloading LocalStoreStmt and AtomicOpStmt #813

Merged
merged 1 commit into from Apr 18, 2020

Conversation

xumingkuan
Copy link
Collaborator

@xumingkuan
Copy link
Collaborator Author

The job exceeded the maximum time limit for jobs, and has been terminated.?

Copy link
Member

@yuanming-hu yuanming-hu left a comment

Choose a reason for hiding this comment

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

LGTM! Just a minor nit.

@@ -278,6 +278,15 @@ bool Stmt::have_operand(Stmt *stmt) const {
return false;
}

int Stmt::locate_operand(Stmt **stmt) {
for (int i = 0; i < num_operands(); i++) {
Copy link
Member

Choose a reason for hiding this comment

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

Here should we consider something like $1 = add $0, $0?

Copy link
Member

Choose a reason for hiding this comment

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

And we should probably add the tests in.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I used Stmt ** rather than Stmt *, so I think the values like the same $0s wouldn't affect.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

And we should probably add the tests in.

Yeah, we should add #812 (comment) in. But I haven't come up with the name of the test.

(I don't think locate_operand need tests)

@yuanming-hu
Copy link
Member

I'm merging this in, for now, to fix the issue in #814. Let's resolve the comment later.

@yuanming-hu yuanming-hu merged commit 869fb6a into taichi-dev:master Apr 18, 2020
xumingkuan added a commit to xumingkuan/taichi that referenced this pull request Apr 20, 2020
@xumingkuan xumingkuan deleted the fix-offload branch April 27, 2020 03:27
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

2 participants