You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A clear and concise description of what the bug is.
I am going to use TFLite GPU runtime on aarch64 platform.
So I built an OpenGL backend TFLite GPU delegate on Ubuntu 18.04 x86_64 PC.
I tried to use the built OpenGL backend TFLite GPU delegate in Python on RK3399 Ubuntu 18.04 LTS aarch64.
But I met the following issue when loading the delegate.
So I used the env variable LD_PRELOAD as the following.
export LD_PRELOAD="/usr/lib/aarch64-linux-gnu/libEGL.so /usr/lib/aarch64-linux-gnu/libGLESv2.so"
The first issue disappeared.
But the second issue appeared as the following.
Environment
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: Ubuntu 18.04 LTS x86_64
OpenGL version string: 3.3 (Compatibility Profile) Mesa 19.2.8
native gcc(g++): 7.5.0
cross-compiler aarch64-linux-gnu-gcc(aarch64-linux-gnu-g++): 8.3.0, which is download automatically by bazel when building
bazel: 3.7.2
python: virtual env python 3.7
Smartphone (please complete the following information):
Device: RK3399
OS: Ubuntu 18.04 LTS aarch64
CPU: armv8
GPU: Mali T860
OpenGL version string: 3.1 Mesa 19.2.8
python: 3.7 (virtual env)
To Reproduce
Steps to reproduce the behavior:
I followed the following steps on my host PC.
For OpenGL backend GPU delegate, The following issue appears on RK3399 aarch64 platform.
For OpenCL backend GPU delegate, it works well.
But the inference time is almost the same as using CPU backend TFLite runtime with 2 threads.
Thank you very much
馃悰 Bug
A clear and concise description of what the bug is.
I am going to use TFLite GPU runtime on aarch64 platform.
So I built an OpenGL backend TFLite GPU delegate on Ubuntu 18.04 x86_64 PC.
I tried to use the built OpenGL backend TFLite GPU delegate in Python on RK3399 Ubuntu 18.04 LTS aarch64.
But I met the following issue when loading the delegate.
So I used the env variable LD_PRELOAD as the following.
export LD_PRELOAD="/usr/lib/aarch64-linux-gnu/libEGL.so /usr/lib/aarch64-linux-gnu/libGLESv2.so"
The first issue disappeared.
But the second issue appeared as the following.
Environment
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
To Reproduce
Steps to reproduce the behavior:
I followed the following steps on my host PC.
sudo apt update
sudo apt-get install software-properties-common
sudo apt update
sudo apt install git curl
sudo apt install python3.7 python3.7-dev python3.7-venv python3.7-distutils
sudo apt install mesa-common-dev libegl1-mesa-dev libgles2-mesa-dev
cd ~
python3.7 -m venv py37
source ~/py37/bin/activate
pip install cython
pip install wheel
pip install numpy
git clone -b r2.4 https://github.com/tensorflow/tensorflow.git tensorflow_r2.4
cd tensorflow_r2.4
./configure
bazel build -s -c opt --config=elinux_aarch64 --copt="-DMESA_EGL_NO_X11_HEADERS" --copt="-DEGL_NO_X11" tensorflow/lite/delegates/gpu:libtensorflowlite_gpu_gl.so
The text was updated successfully, but these errors were encountered: