Skip to content

Commit

Permalink
Correct "use_device_api" attribute name on Target
Browse files Browse the repository at this point in the history
  • Loading branch information
Mousius committed Nov 12, 2021
1 parent 21c2832 commit f63a0c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/relay/backend/aot_executor_codegen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ class AOTExecutorCodegen : public MixedModeVisitor {
*/
void CollectDeviceVariables(const Map<GlobalVar, String>& device_contexts) {
Map<TargetKind, tir::Var> target_contexts;
TargetKindAttrMap<Bool> target_attr_map = tvm::TargetKind::GetAttrMap<Bool>("c_device_api");
TargetKindAttrMap<Bool> target_attr_map = tvm::TargetKind::GetAttrMap<Bool>("use_device_api");

for (const auto& it : device_contexts) {
const GlobalVar& global_var = it.first;
Expand Down
2 changes: 1 addition & 1 deletion src/target/target_kind.cc
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ TVM_REGISTER_TARGET_KIND("hybrid", kDLCPU) // line break

TVM_REGISTER_TARGET_KIND("composite", kDLCPU).add_attr_option<Array<Target>>("devices");

TVM_REGISTER_TARGET_KIND("ethos-u", kDLCPU).set_attr<Bool>("c_device_api", Bool(true));
TVM_REGISTER_TARGET_KIND("ethos-u", kDLCPU).set_attr<Bool>("use_device_api", Bool(true));

/********** Registry **********/

Expand Down

0 comments on commit f63a0c8

Please sign in to comment.