Skip to content

Commit

Permalink
[microNPU] enable USMP
Browse files Browse the repository at this point in the history
* rebase fixes -- PoolInfo is moved out of usmp namespace

Change-Id: Idcf3b4a9a08d8d430eebee9a748ef0f0878379b0
  • Loading branch information
manupak committed Feb 17, 2022
1 parent 76a433c commit 9daafb1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tir/usmp/transform/assign_pool_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ class PoolInfoAssigner : public StmtExprMutator {
IRModule mod_;
Map<String, Array<PoolInfo>> target_pool_infos_;
PrimFunc func_;
usmp::PoolInfo CreateDefaultMemoryPool(const IRModule& module);
PoolInfo CreateDefaultMemoryPool(const IRModule& module);
};

usmp::PoolInfo PoolInfoAssigner::CreateDefaultMemoryPool(const tvm::IRModule& module) {
PoolInfo PoolInfoAssigner::CreateDefaultMemoryPool(const tvm::IRModule& module) {
Map<Target, String> target_access;
tir::PrimFunc tir_main_func =
Downcast<tir::PrimFunc>(module->Lookup(::tvm::runtime::symbol::tvm_run_func_suffix));
Expand All @@ -86,9 +86,9 @@ usmp::PoolInfo PoolInfoAssigner::CreateDefaultMemoryPool(const tvm::IRModule& mo
Optional<Target> target = func->GetAttr<Target>(tvm::attr::kTarget);
target_access.Set(target.value_or(target_host), PoolInfo::kTargetPoolReadWriteAccess);
}
return usmp::PoolInfo("global_workspace", target_access, kUnrestrictedPoolSizeHint,
kUnknownClockFrequency, kUnknownReadBandwidth,
kUnknownWriteBandwidth, 0, 0, {}, Bool(true));
return PoolInfo("global_workspace", target_access, kUnrestrictedPoolSizeHint,
kUnknownClockFrequency, kUnknownReadBandwidth,
kUnknownWriteBandwidth, 0, 0, {}, Bool(true));
}

Stmt PoolInfoAssigner::VisitStmt_(const AllocateNode* op) {
Expand Down

0 comments on commit 9daafb1

Please sign in to comment.