Skip to content

Instantly share code, notes, and snippets.

@Jiab77
Last active June 27, 2018 01:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jiab77/33cb9963f62233f6b0bff88839d1b33e to your computer and use it in GitHub Desktop.
Save Jiab77/33cb9963f62233f6b0bff88839d1b33e to your computer and use it in GitHub Desktop.
glmark2 for nVidia cards

glmark2 for nVidia cards

The goal of this gist is to help users who was in the same case as me after the installation of the nVidia drivers.

Issue

While running glmark2 after the driver installation, I got a nice surprise:

Erreur de segmentation (core dumped)

Can be translated to Segmentation fault

After some googling I finally found the solution but I also wanted to know how to compile it from source 😁 and this is what I will explain.

Fix

To run glmark2 without segmentation fault error, you just need to load the phtread library first like this:

LD_PRELOAD=/lib/x86_64-linux-gnu/libpthread.so.0 glmark2

To make it easier to manage in the future, you can create an alias in your .bashrc file or .bash_aliases file by doing so:

alias glmark2="LD_PRELOAD=/lib/x86_64-linux-gnu/libpthread.so.0 glmark2"

You can run this command or save it in the file indicated previously.

Compilation

If you ever wanted to compile glmark2, just proceed that way:

Will put instructions from https://www.pcsuggest.com/install-glmark2-debian/ later.

Flavours

You may also decide to compile multiple versions of glmark2 for testing purpose, to do it, install packages indicated from:

And choose one of these flavours:

Refer to https://www.pcsuggest.com/install-glmark2-debian/ for the compilation steps.

References

I used the following references to make this gist:

Contribute

Feel free to comment if you have any issues or to improve this gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment