junrushao opened a new pull request, #14217:
URL: https://github.com/apache/tvm/pull/14217
This PR introduces a syntactic sugar that combines T.env_thread and
T.launch_thread.
Previously, an AttrStmt that specifies thread extent or virtual thread is
required to be written in two steps:
```python
bx = T.env_thread("blockIdx.x") // creates an IterVar
with T.launch_thread(bx, 128): // specify the iter domain
...
```
With this PR, now this behavior can be merged in a single line:
```python
with T.launch_thread("blockIdx.x", 128) as bx:
...
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]