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

[Bug] [ir] Fix compilation crash when there's a cross-offload global atomic operation #1392

Merged
merged 3 commits into from
Jul 4, 2020

Conversation

xumingkuan
Copy link
Contributor

@xumingkuan xumingkuan commented Jul 3, 2020

Related issue = fix #1390

Global atomic op should call the generic visitor instead of the overloaded one.

Added a test that fails before this PR.

[Click here for the format server]


@codecov
Copy link

codecov bot commented Jul 3, 2020

Codecov Report

Merging #1392 into master will increase coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1392      +/-   ##
==========================================
+ Coverage   85.59%   85.62%   +0.03%     
==========================================
  Files          19       19              
  Lines        3394     3388       -6     
  Branches      622      622              
==========================================
- Hits         2905     2901       -4     
+ Misses        359      358       -1     
+ Partials      130      129       -1     
Impacted Files Coverage Δ
python/taichi/lang/impl.py 90.12% <0.00%> (-0.16%) ⬇️
python/taichi/lang/expr.py 90.00% <0.00%> (-0.06%) ⬇️
python/taichi/lang/shell.py 44.06% <0.00%> (+3.38%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a6ad366...4fea64e. Read the comment docs.

Copy link
Collaborator

@archibate archibate left a comment

Choose a reason for hiding this comment

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

LGTM (with no knowledge about the optimization engine, just confirmed it's working in any combination).
Btw, can we have an option ti.core.toggle_all_optimization(False) to turn off all optimization so that we can easier confirm a bug & make compile faster when test?

@xumingkuan xumingkuan merged commit fe17ca1 into taichi-dev:master Jul 4, 2020
@archibate archibate mentioned this pull request Jul 4, 2020
@xumingkuan xumingkuan deleted the fix-global-ptr-offload branch July 7, 2020 01:05
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.

[Bug] [opt] [ir] GlobalPtrStmt being optimized out cross offload
2 participants