Skip to content

Commit

Permalink
[BugFix] undefined reference to kTargetPoolReadWriteAccess
Browse files Browse the repository at this point in the history
This fixes the undefined reference build error again.

This was originally fixed in apache#10147 but was accidentally reverted in apache#10193
  • Loading branch information
yelite committed Feb 16, 2022
1 parent 64e94ab commit fdd1e29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tir/usmp/transform/assign_pool_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ class PoolInfoAssigner : public StmtExprMutator {
WorkspaceMemoryPools workspace_pools =
module->GetAttr<WorkspaceMemoryPools>(tvm::attr::kWorkspaceMemoryPools)
.value_or(WorkspaceMemoryPools({PoolInfo(
"global_workspace", {{target_host.value(), PoolInfo::kTargetPoolReadWriteAccess}},
"global_workspace",
{{target_host.value(), String(PoolInfo::kTargetPoolReadWriteAccess)}},
PoolInfo::kUnrestrictedPoolSizeHint, PoolInfo::kUnknownClockFrequency,
PoolInfo::kUnknownReadBandwidth, PoolInfo::kUnknownWriteBandwidth, 0, 0,
{{target_host.value(), 1}}, Bool(true))}));
Expand Down

0 comments on commit fdd1e29

Please sign in to comment.