You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by me...@apache.org on 2022/05/04 21:31:25 UTC
[tvm] branch main updated: [Hexagon] Removes directory after stopping the server (#11212)
This is an automated email from the ASF dual-hosted git repository.
mehrdadh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new e1acd4b872 [Hexagon] Removes directory after stopping the server (#11212)
e1acd4b872 is described below
commit e1acd4b872e02a9bc188dd6e5ff8d0a6a71b285f
Author: Farshid Salemi Parizi <fp...@octoml.ai>
AuthorDate: Wed May 4 14:31:14 2022 -0700
[Hexagon] Removes directory after stopping the server (#11212)
* removes hexagon directory
---
python/tvm/contrib/hexagon/build.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/python/tvm/contrib/hexagon/build.py b/python/tvm/contrib/hexagon/build.py
index fa20a2fa7d..39f80d25eb 100644
--- a/python/tvm/contrib/hexagon/build.py
+++ b/python/tvm/contrib/hexagon/build.py
@@ -467,6 +467,10 @@ class HexagonLauncherAndroid(HexagonLauncherRPC):
self._adb_device_sub_cmd + ["shell", f"kill `cat {self._workspace}/rpc_pid.txt`"]
)
+ def _cleanup_directory(self):
+ # Remove workspace directory on remote target
+ subprocess.Popen(self._adb_device_sub_cmd + ["shell", f"rm -rf {self._workspace}"])
+
def start_server(self):
"""Abstract method implementation. See description in HexagonLauncherRPC."""
self._copy_binaries()
@@ -476,6 +480,7 @@ class HexagonLauncherAndroid(HexagonLauncherRPC):
"""Abstract method implementation. See description in HexagonLauncherRPC."""
self._cleanup_port_forwarding()
self._terminate_remote()
+ self._cleanup_directory()
class HexagonLauncherSimulator(HexagonLauncherRPC):