Last edited 4 years ago

How to launch glmark2 benchmark: Difference between revisions


Revision as of 17:53, 4 October 2019

1. Introduction[edit source]

glmark2 is an OpenGL 2.0 and ES 2.0 benchmark, developed by Alexandros Frantzis and Jesse Barker. It is based on the original glmark benchmark by Ben Smith. Template:Grey

2. Installing glmark2[edit source]

Template:Warning

2.1. Building glmark2[edit source]

Execute the following command in the OpenSTLinux build environment:

Template:PC$ bitbake glmark2

2.2. Installing glmark2 on the target board[edit source]

Execute the following command in the OpenSTLinux build environment:

Template:PC$ scp -r tmp*/work/*neon*/glmark2/*/image/* root@<ip address of board>:/
Template:PC$ scp tmp*/work/*neon*/libpng12/*/image/usr/lib/libpng*.so* root@<ip address of board>:/usr/lib/   Template:Grey

Template:Info

3. Using glmark2[edit source]

Building glmark2 generates 2 binaries:

  • glmark2-es2-wayland, to launch glmark2 benchmark as a wayland client.
  • glmark2-es2-drm, to launch glmark2 benchmark as a native DRM/GBM openGLES application.

3.1. glmark2-es2-wayland[edit source]

  • Start Weston (if not already started)
Template:Board$ systemctl start weston
  • Launch glmark2
Template:Board$ glmark2-es2-wayland

3.2. glmark2-es2-drm[edit source]

  • Stop Weston
Template:Board$ systemctl stop weston
  • The DRM display mode may need to be set and the DRM master token released so that glmark2 can use the DRM interfaces. This depends on the glmark2 version. For instance:
Template:Board$ modetest -s 27:720x1280 -d &

Note: The connector and the mode are given as an example.

  • Launch glmark2
Template:Board$ glmark2-es2-drm

4. Source code location[edit source]

5. To go further[edit source]

You can find the full documentation of glmark2 in the related Ubuntu man page http://manpages.ubuntu.com/manpages/cosmic/man1/glmark2.1.html.

6. References[edit source]