budtmo / budtmo/docker-android

gpu acceleration in docker-android

Open
#183 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
15.8k
Forks
1.8k
Avg merge
12h 13m
Merged PRs (30d)
6

Description

hey guys, i have a little problem, how to enable gpu acceleration in docker-android?

I have a rx580 graphic card and my host system is archlinux with open source radeon driver installed.

I use the command
"docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e EMULATOR_ARGS="-gpu host" --name android-docker budtmo/docker-android-x86-8.1"
, create a container and it can start the emulator normally, but the cpu useage is very high.

In container,I try to use "glxinfo | grep rendering" , it shows "Yes";
Then i try to use "glxinfo | grep OpenGL", it can show the correct opengl version.

I also try "Settings==>Advanced", choose options "Desktop native OpenGL" and "Renderer maximum" , but it still have no use.

I think the problem is a "docker" problem, but there are not many discussion. Whether I should install a ROCM to enable the gpu acceleration? or other solution?

thx.

update1:
it seems that if i use qemu as vnc server, avd must work under "gpu guest"mode, if i want to use gpu host, i should use avd in host system.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.