This is an automated email from the ASF dual-hosted git repository.

masahi 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 d91fdbb0ab [runtime-hexagon-rpc] more Hexagon/Android logging (#10767)
d91fdbb0ab is described below

commit d91fdbb0abd6cf6776303bbb1f1de41fe530ab15
Author: Christian Convey <[email protected]>
AuthorDate: Sun Apr 3 21:32:12 2022 -0400

    [runtime-hexagon-rpc] more Hexagon/Android logging (#10767)
    
    - Alter `android_bash.sh` to meet the runtime conditions needed
      for FARF logging.  (Note that FARF logging is also governed
      by certain preprocessor definitions.)
    
    - Alter `android_bash.sh` so that any stdout/stderr emitted
      by `tvm_rpc_android_server` is saved to a log file
      (`tvm_rpc_android.log`). Previously that output was simply
      lost.
---
 src/runtime/hexagon/rpc/android_bash.sh.template | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/runtime/hexagon/rpc/android_bash.sh.template 
b/src/runtime/hexagon/rpc/android_bash.sh.template
index 7bf6d773f2..d9f7613b0f 100644
--- a/src/runtime/hexagon/rpc/android_bash.sh.template
+++ b/src/runtime/hexagon/rpc/android_bash.sh.template
@@ -17,7 +17,13 @@
 # under the License.
 
 export LD_LIBRARY_PATH=.
-./tvm_rpc_android server --port=<RPC_SERVER_PORT> 
--tracker=<RPC_TRACKER_HOST>:<RPC_TRACKER_PORT> 
--key=<HEXAGON_REMOTE_DEVICE_KEY>&
+
+# Enable FARF-based logging for Hexagon code invoked by 
'tvm_rpc_android_server'.
+export ADSP_LIBRARY_PATH=`pwd`
+echo 0x1f > tvm_rpc_android.farf
+
+./tvm_rpc_android server --port=<RPC_SERVER_PORT> 
--tracker=<RPC_TRACKER_HOST>:<RPC_TRACKER_PORT> 
--key=<HEXAGON_REMOTE_DEVICE_KEY> >${PWD}/tvm_rpc_android.log 2>&1 &
+
 rpc_pid=$!
 
 rm -f rpc_pid.txt

Reply via email to