-
Notifications
You must be signed in to change notification settings - Fork 685
Description
🐛 Describe the bug
The executable permission of file: qnn_executor_runner executable of the qnn example tutorial (https://pytorch.org/executorch/main/backends-qualcomm.html#deploying-and-running-on-device)
is removed on the mobile device (I tested on one plus os 15) after it's copied to the mobile device;
The attributes of the original file:
-rwxr-xr-x 1 . . 53039224 Mar 9 13:38 examples/qualcomm/executor_runner/qnn_executor_runner*
The attributes of the copied file on the mobile device:
-rw-rw-rw- 1 . . 53039224 2025-03-09 00:38 executorch/dl3_qnn_q8/qnn_executor_runner
The running step of qnn example is failed by the following error messages:
/system/bin/sh: ./qnn_executor_runner: can't execute: Permission denied
/data/local/tmp/executorch/dl3_qnn_q8/outputs/: 0 files pulled, 0 skipped.
Traceback (most recent call last):
File "executorch/examples/qualcomm/scripts/deeplab_v3.py", line 200, in <module>
main(args)
File "executorch/examples/qualcomm/scripts/deeplab_v3.py", line 161, in main
np.fromfile(
FileNotFoundError: [Errno 2] No such file or directory: './deeplab_v3/outputs/output_0_0.raw'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "executorch/examples/qualcomm/scripts/deeplab_v3.py", line 206, in <module>
raise Exception(e)
Exception: [Errno 2] No such file or directory: './deeplab_v3/outputs/output_0_0.raw'
I found android has controlled the access of adb command.
Versions
Versions
Collecting environment information...
PyTorch version: 2.6.0+cpu
Is debug build: False
CUDA used to build PyTorch: Could not collect
ROCM used to build PyTorch: N/A
OS: Ubuntu 22.04.5 LTS (x86_64)
GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Clang version: 14.0.0-1ubuntu1.1
CMake version: version 3.31.4
Libc version: glibc-2.35
Python version: 3.10.12 (main) [GCC 11.4.0] (64-bit runtime)
Is CUDA available: False
CUDA runtime version: Could not collect
CUDA_MODULE_LOADING set to: N/A
Nvidia driver version: 560.94
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.9.7.1
/usr/lib/x86_64-linux-gnu/libcudnn_adv.so.9.7.1
/usr/lib/x86_64-linux-gnu/libcudnn_cnn.so.9.7.1
/usr/lib/x86_64-linux-gnu/libcudnn_engines_precompiled.so.9.7.1
/usr/lib/x86_64-linux-gnu/libcudnn_engines_runtime_compiled.so.9.7.1
/usr/lib/x86_64-linux-gnu/libcudnn_graph.so.9.7.1
/usr/lib/x86_64-linux-gnu/libcudnn_heuristic.so.9.7.1
/usr/lib/x86_64-linux-gnu/libcudnn_ops.so.9.7.1
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
Versions of relevant libraries:
[pip3] executorch==0.6.0a0+791472d
[pip3] numpy==2.0.0
[pip3] nvidia-cublas-cu12==12.4.5.8
[pip3] nvidia-cuda-cupti-cu12==12.4.127
[pip3] nvidia-cuda-nvrtc-cu12==12.4.127
[pip3] nvidia-cuda-runtime-cu12==12.4.127
[pip3] nvidia-cudnn-cu12==9.1.0.70
[pip3] nvidia-cufft-cu12==11.2.1.3
[pip3] nvidia-curand-cu12==10.3.5.147
[pip3] nvidia-cusolver-cu12==11.6.1.9
[pip3] nvidia-cusparse-cu12==12.3.1.170
[pip3] nvidia-cusparselt-cu12==0.6.2
[pip3] nvidia-nccl-cu12==2.21.5
[pip3] nvidia-nvjitlink-cu12==12.4.127
[pip3] nvidia-nvtx-cu12==12.4.127
[pip3] pytorch-triton==3.2.0+gitb2684bf3
[pip3] torch==2.6.0+cpu
[pip3] torchao==0.8.0+git11333ba2
[pip3] torchaudio==2.6.0+cpu
[pip3] torchsr==1.0.4
[pip3] torchtune==0.6.0.dev20250131+cu124
[pip3] torchvision==0.21.0+cpu
[conda] Could not collect