areusch commented on a change in pull request #8452:
URL: https://github.com/apache/tvm/pull/8452#discussion_r682760250



##########
File path: include/tvm/tir/function.h
##########
@@ -90,13 +90,16 @@ class PrimFuncNode : public BaseFuncNode {
    *  will make program analysis much easier.
    */
   Map<tir::Var, Buffer> buffer_map;
+  /*! \brief The resource handle to be used by the function when accessing 
platform resources */
+  tir::Var resource_handle;

Review comment:
       hmm, but is there just one resource_handle associated with each 
function? suppose you had two instances of the same accelerator and wanted to 
launch the same compute function twice concurrently? also, what about the AOT 
top-level function, which should have a struct like `TVMDevices_my_model`?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to