“How to launch glmark2 benchmark”的版本间的差异

来自百问网嵌入式Linux wiki
(创建页面,内容为“Category:Linux_Operating_System Category:Visual Category:GPU”)
 
 
(未显示2个用户的2个中间版本)
第1行: 第1行:
[[Category:Linux_Operating_System]]
+
== Introduction ==
[[Category:Visual]]
+
'' '''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. {{grey|extracted from '''The glmark2 official web site''' <ref> https://github.com/glmark2/glmark2 </ref>}}''
[[Category:GPU]]
+
 
 +
== Installing glmark2 ==
 +
{{Warning | Glmark2 is under GPLV3 license, and thus not delivered inside any provided OpenSTLinux image.}}
 +
 
 +
=== Building glmark2 ===
 +
Execute the following command in the OpenSTLinux build environment:
 +
{{PC$}} bitbake glmark2
 +
 
 +
=== Installing glmark2 on the target board ===
 +
Execute the following command in the OpenSTLinux build environment:
 +
{{PC$}} scp -r tmp*/work/*neon*/glmark2/*/image/* root@<ip address of board>:/
 +
{{PC$}} scp tmp*/work/*neon*/libpng12/*/image/usr/lib/libpng*.so* root@<ip address of board>:/usr/lib/  {{grey |# libpng12 may not be required depending on the glmark2 version}}
 +
{{Info | The size of the glmark2 files is around 60 Mbytes.}}
 +
 
 +
== Using glmark2 ==
 +
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.
 +
 
 +
=== glmark2-es2-wayland ===
 +
* Start Weston (if not already started)
 +
{{Board$}} systemctl start weston
 +
* Launch glmark2
 +
{{Board$}} glmark2-es2-wayland
 +
 
 +
=== glmark2-es2-drm ===
 +
* Stop Weston
 +
{{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:
 +
{{Board$}} modetest -s 27:720x1280 -d &
 +
''Note: The connector and the mode are given as an example. ''
 +
* Launch glmark2
 +
{{Board$}} glmark2-es2-drm
 +
 
 +
== Source code location ==
 +
* Official source code: https://github.com/glmark2/glmark2
 +
 
 +
== To go further ==
 +
You can find the full documentation of glmark2 in the related Ubuntu man page http://manpages.ubuntu.com/manpages/cosmic/man1/glmark2.1.html.
 +
 
 +
==References==
 +
<references />
 +
 
 +
<noinclude>
 +
{{PublicationRequestId | 9280 | 2018-10-16 | AnneJ}}
 +
[[Category:How to run use cases]]
 +
[[Category:GPU]]
 +
</noinclude>

2020年5月8日 (五) 22:39的最新版本

Introduction

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. extracted from The glmark2 official web site [1]

Installing glmark2

Warning.png Glmark2 is under GPLV3 license, and thus not delivered inside any provided OpenSTLinux image.

Building glmark2

Execute the following command in the OpenSTLinux build environment:

PC $> bitbake glmark2

Installing glmark2 on the target board

Execute the following command in the OpenSTLinux build environment:

PC $> scp -r tmp*/work/*neon*/glmark2/*/image/* root@<ip address of board>:/
PC $> scp tmp*/work/*neon*/libpng12/*/image/usr/lib/libpng*.so* root@<ip address of board>:/usr/lib/   # libpng12 may not be required depending on the glmark2 version
Info.png The size of the glmark2 files is around 60 Mbytes.

Using glmark2

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.

glmark2-es2-wayland

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

glmark2-es2-drm

  • Stop Weston
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:
Board $> modetest -s 27:720x1280 -d &

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

  • Launch glmark2
Board $> glmark2-es2-drm

Source code location

To go further

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

References


<securetransclude src="ProtectedTemplate:PublicationRequestId" params="9280 | 2018-10-16 | AnneJ"></securetransclude>