-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
connect to this proxy server via TVM RPC application failed #638
Comments
Make sure you put right IP of your machine to the android app, instead of 0 0 0 0 |
1: at host by command: ifconfig, get the host ip is 10.120.3.152 2: at fisrt terminal: 3: seconad terminal : after run step 3 , first terminal will show message: then I try to input 10.120.3.152 to app address, 49400 to APP Port , also can not connect failed by phone |
also try to input 10.120.3.152 to app address, 9090 to APP Port , android to the APP key ,also can not ps : myphone ip do at the same LAN with PC , |
The port should be 9090(the port to your proxy) |
also try to input 10.120.3.152 to app address, 9090 to APP Port , android to the APP key ,also can not ps : myphone ip do not at the same LAN with PC , |
after put phone with PC in the same LAN, can connect success, logcat: |
in |
@Javelinjs Template configuration for compilingIf you want to change the configuration, please use the followingsteps. Assume you are on the root directory. First copy the thisfile so that any local changes will be ignored by gitcp make/config.mk .Next modify the according entries, and then compile by./build.sh#------------------------------------------------------------------------------- APP_PLATFORM = android-17 whether enable OpenCL during compileUSE_OPENCL = 1 the additional include headers you want to add, e.g., SDK_PATH/adrenosdk/Development/IncADD_C_INCLUDES = /media/zhl/second/code/android-ndk-r14b/platforms/android-21/arch-arm64/usr/include the additional link libs you want to add, e.g., ANDROID_LIB_PATH/libOpenCL.soADD_LDLIBS = /media/zhl/second/code/android-ndk-r14b/platforms/android-21/arch-arm64/usr/lib/libOpenCL.so |
more info: Dynamic section at offset 0x13a8c0 contains 30 entries: which means already link opencl lib |
get the reason:
but my phone opencl is gpu mode, so so how to compat this case, PC env opencl with cpu mode, and phone opencl is GPU mode |
diff --git a/src/runtime/opencl/opencl_device_api.cc b/src/runtime/opencl/opencl_device_api.cc
compat host cpu-mode opencl with device gpu-mode opencl |
Also pls enable opencl when install tvm on your PC |
1: follow the android build and connect steps:
2: run:
zhl@pc:~/mycode/tvm/apps/android_rpc/tests$ python -m tvm.exec.rpc_proxy
INFO:root:RPCProxy: client port bind to 0.0.0.0:9090
INFO:root:RPCProxy: Websock port bind to 9190
3: input 0.0.0.0 to Adddress to APK :
9090 to Port,
then apk show err: connect failed:
adb log:
-13 06:14:37.924 488 3676 E FastThread: did not receive expected priority boost
03-13 06:14:37.972 711 711 I MSM-irqbalance: Decided to move IRQ321 from CPU3 to CPU2
03-13 06:14:38.009 1342 3816 W qti_sensors_hal: timestampCalc: Adjusting timestamp for rollover: 367028416431594, -1
03-13 06:14:38.159 1342 3816 W qti_sensors_hal: timestampCalc: Adjusting timestamp for rollover: 367028567341018, -1
03-13 06:14:38.310 1342 3816 W qti_sensors_hal: timestampCalc: Adjusting timestamp for rollover: 367028718372512, -1
03-13 06:14:38.325 10773 10773 W Atfwd_Sendcmd: AtCmdFwd service not published, waiting... retryCnt : 4
03-13 06:14:38.461 1342 3816 W qti_sensors_hal: timestampCalc: Adjusting timestamp for rollover: 367028869434524, -1
03-13 06:14:38.612 1342 3816 W qti_sensors_hal: timestampCalc: Adjusting timestamp for rollover: 367029020496536, -1
03-13 06:14:38.749 10786 10800 W System.err: java.net.ConnectException: failed to connect to localhost/127.0.0.1 (port 9090) after 6000ms: isConnected failed: ECONNREFUSED (Connection refused)
03-13 06:14:38.749 10786 10800 W System.err: at libcore.io.IoBridge.isConnected(IoBridge.java:234)
03-13 06:14:38.749 10786 10800 W System.err: at libcore.io.IoBridge.connectErrno(IoBridge.java:171)
03-13 06:14:38.749 10786 10800 W System.err: at libcore.io.IoBridge.connect(IoBridge.java:122)
03-13 06:14:38.749 10786 10800 W System.err: at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
03-13 06:14:38.749 10786 10800 W System.err: at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:452)
03-13 06:14:38.749 10786 10800 W System.err: at java.net.Socket.connect(Socket.java:884)
03-13 06:14:38.750 10786 10800 W System.err: at ml.dmlc.tvm.rpc.ConnectProxyServerProcessor.run(ConnectProxyServerProcessor.java:62)
03-13 06:14:38.750 10786 10800 W System.err: at ml.dmlc.tvm.tvmrpc.RPCProcessor.run(RPCProcessor.java:67)
03-13 06:14:38.750 10786 10800 W System.err: Caused by: android.system.ErrnoException: isConnected failed: ECONNREFUSED (Connection refused)
03-13 06:14:38.750 10786 10800 W System.err: at libcore.io.IoBridge.isConnected(IoBridge.java:223)
03-13 06:14:38.750 10786 10800 W System.err: ... 7 more
03-13 06:14:38.761 488 3678 D audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
03-13 06:14:38.761 488 3678 V msm8916_platform: platform_get_output_snd_device: enter: output devices(0x2)
03-13 06:14:38.762 488 3678 V msm8916_platform: platform_get_output_snd_device: exit: snd_device(speaker)
03-13 06:14:38.762 488 3678 D audio_hw_extn: audio_extn_set_anc_parameters: anc_enabled:0
03-13 06:14:38.763 10786 10786 W System.err: Disconnected.
03-13 06:14:38.765 1342 3816 W qti_sensors_hal: timestampCalc: Adjusting timestamp for rollover: 367029171558547, -1
The text was updated successfully, but these errors were encountered: