-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DLight] Check for target in function attributes (#16958)
Prior to this commit, the `dlight` scheduling rules were applied solely based on the global `tvm.target.Target.current()`. However, a TIR PrimFunc may be annotated with the target, rather than using the global `Target.current()`. In this case, the `dlight` scheduling may produce a scheduled PrimFunc that is not compatible with its target. For example, using a thread binding to `"threadIdx.x"` on a CPU target. This commit updates `dlight` to check for a TIR PrimFunc's annotations when scheduling, matching the behavior of `tvm.build`.
- Loading branch information
1 parent
2933744
commit eb242ec
Showing
2 changed files
with
88 additions
and
1 deletion.
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