User Tools

Site Tools


ubuntu:gpu:benchmark_the_gpu

This is an old revision of the document!


Ubuntu - GPU - Benchmark the GPU

Technically speaking, all of the available GPU benchmarking tools in Linux only test under the OpenGL renderer of course.

While your GPU may be compatible with some versions of Direct3D, it is not possible to test this renderer under Linux.


GLX-Gears

GLX gears is a popular OpenGL test that is part of the mesa-utils package.

Install GLX-Gears

sudo apt install mesa-utils

Run GLX-Gears

glxgears

NOTE: This tool is very old, very basic and only tests a small portion of the current OpenGL capabilities.

  • This will open up a window with an OpenGL rendering of a simple arrangement of three rotating gears.
  • The frame rate is measured and printed out on the terminal every five seconds.

GL Mark 2

Install glmark2

sudo apt install glmark2

Run glmark2

glmark2

NOTE: GL mark is a much richer benchmarking tool developed by the kind people behind the Linaro distribution.

  • glmark offers a rich set of tests that concern different aspects of your graphics unit performance (buffering, building, lighting, texturing etc), allowing for a much more comprehensive and meaningful test.
  • Each test is conducted for 10 seconds and the frame rate is counted individually.
  • In the end, users get a performance score based on all previous tests.

Unigine Benchmarks

Hashcat

hashcat -I

returns:

hashcat (v6.2.5) starting in backend information mode
 
OpenCL Info:
============
 
OpenCL Platform ID #1
  Vendor..: Advanced Micro Devices, Inc.
  Name....: AMD Accelerated Parallel Processing
  Version.: OpenCL 2.1 AMD-APP (3513.0)
 
  Backend Device ID #1
    Type...........: GPU
    Vendor.ID......: 1
    Vendor.........: Advanced Micro Devices, Inc.
    Name...........: Radeon RX 7900 XTX
    Version........: OpenCL 2.0 
    Processor(s)...: 48
    Clock..........: 3220
    Memory.Total...: 24560 MB (limited to 20876 MB allocatable in one block)
    Memory.Free....: 24448 MB
    OpenCL.Version.: OpenCL C 2.0 
    Driver.Version.: 3513.0 (HSA1.1,LC)
    PCI.Addr.BDF...: 0c:00.0

hashcat -b | uniq

returns:

hashcat (v6.2.5) starting in benchmark mode
 
Benchmarking uses hand-optimized kernel code by default.
You can use it in your cracking session by setting the -O option.
Note: Using optimized kernel code limits the maximum supported password length.
To disable the optimized kernel code in benchmark mode, use the -w option.
 
OpenCL API (OpenCL 2.1 AMD-APP (3513.0)) - Platform #1 [Advanced Micro Devices, Inc.]
=====================================================================================
* Device #1: Radeon RX 7900 XTX, 24448/24560 MB (20876 MB allocatable), 48MCU
 
Benchmark relevant options:
===========================
* --optimized-kernel-enable
 
-------------------
* Hash-Mode 0 (MD5)
-------------------
 
Speed.#1.........: 70140.4 MH/s (11.02ms) @ Accel:512 Loops:1024 Thr:32 Vec:1
 
----------------------
* Hash-Mode 100 (SHA1)
----------------------
 
Speed.#1.........: 30426.9 MH/s (26.05ms) @ Accel:128 Loops:1024 Thr:128 Vec:1
...

NOTE: Near the top it shows that hashcat makes use of the GPU.

  • Device #1: Radeon RX 7900 XTX

ubuntu/gpu/benchmark_the_gpu.1687854569.txt.gz · Last modified: 2023/06/27 08:29 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki