You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "srkreddy1238 (via GitHub)" <gi...@apache.org> on 2023/02/02 05:00:19 UTC
[GitHub] [tvm] srkreddy1238 commented on a diff in pull request #13868: [OpenCL] Implement save/load pre-compiled programs
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org