Skip to content

Commit

Permalink
[TIR] Do not add kIsHostFunc attribute during SplitHostDevice
Browse files Browse the repository at this point in the history
Per discussion on apache#14020, the
`kIsHostFunct` attribute should only be used in `BindTarget`, and
should not be re-introduced in `SplitHostDevice`.
  • Loading branch information
Lunderberg committed May 25, 2023
1 parent 5e9fac8 commit a8d7ca6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/tir/transforms/split_host_device.cc
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ PrimFunc SplitHostDevice(PrimFunc func, IRModule* device_mod, const GlobalVar& g
auto body = splitter(func->body);

func.CopyOnWrite()->body = body;
func = WithAttr(std::move(func), tvm::tir::attr::kIsHostFunc, Bool(true));

return func;
}
Expand Down

0 comments on commit a8d7ca6

Please sign in to comment.