srkreddy1238 commented on code in PR #13868:
URL: https://github.com/apache/tvm/pull/13868#discussion_r1094023001


##########
apps/cpp_rtvm/tvm_runner.cc:
##########
@@ -110,6 +113,35 @@ int TVMRunner::Load(void) {
   return 0;
 }
 
+/*!
+ * \brief Specify if the run programs should be dumped to binary and reused in 
the next runs.
+ * \param pathToDir Path to the existed directory where pre-compiled programs 
should be stored.
+ */
+void TVMRunner::UsePreCompiledPrograms(std::string pathToDir) {
+  if (r_run_was_called) {
+    LOG(INFO) << "TVMRunner UsePreCompiledPrograms: should be called before 
first run";
+    return;
+  }
+  if (!std::filesystem::exists(pathToDir))

Review Comment:
   ```rtvm``` tool is not specific to Adreno or OpenCL. It works for any 
target. Probably we could have a target check here.
   
   Also, Can the path be made command line arg for the tool ?



-- 
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