Hi @areusch , I have addressed candidate_memory_pool query now.
For you question around fallback : > where are the "fallback" candidate_memory_pools passed in to the runtime? The fallback only happens the in the compilation time as per this RFC. Therefore, by the time USMP is done, one pool will be assigned/decided to the tir.allocate. > how should the compiler know which candidate_memory_pools can be fallbacks > for a given buffer (given that it does know a particular buffer needs to be > accessible per-device) I have added a sentence to explain this. The core compiler should assign the tir.allocate in each PrimFunc with pool it can access because each PrimFunc know which target it gets compiled to and each pools know which target could access them. Initially it will take the priority order the user provides to the TVMC interface. > do we need to add an additional field to PoolInfo to identify which devices > can use it? it's fine if this is to be decided in a follow-up RFC, but can > you indicate which one (if you have one in mind) or that one hasn't been > chosen (if not)? Im pretty sure it is listed as Map<Target,String> target_access; // 'rw' or 'ro' in the PoolInfo. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/apache/tvm-rfcs/pull/9#issuecomment-928055559