-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Lang] Raise error when the dimension of the ndrange does not equal t…
…o the number of the loop variable (#7933) Issue: # <!-- copilot:summary --> Remove the deprecated feature of allowing mismatched loop variables and ndrange dimensions in for loops. Raise a syntax error instead and update the tests accordingly. <!-- copilot:walkthrough --> * Raise a syntax error when the number of loop variables does not match the dimension of the ndrange in a for loop ([link](https://github.com/taichi-dev/taichi/pull/7933/files?diff=unified&w=0#diff-3e22417ffade4af0564893b98dc5101d714b8ba6fd4423ab5bc5129e360fee8fL1168-R1172)) * Remove the test case for the deprecated warning of using ndrange incorrectly from `test_deprecation.py` ([link](https://github.com/taichi-dev/taichi/pull/7933/files?diff=unified&w=0#diff-8981be068a363e39524dc2e29d28d4c13a097d0037fc3a1176b249ce5bf35ef8L115-L131)) * Add a test case for the syntax error of using ndrange incorrectly to `test_ndrange.py` ([link](https://github.com/taichi-dev/taichi/pull/7933/files?diff=unified&w=0#diff-a9b0dba640148aa2d28264b8b5c2ecaebab68a09ea0ea0c2fae5aaf303e69ed7R339-R354))
- Loading branch information
1 parent
679a20c
commit 66caf8e
Showing
3 changed files
with
19 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters