The goal of this gist is to help users who was in the same case as me after the installation of the nVidia drivers.
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.
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.
If you ever wanted to compile glmark2
, just proceed that way:
Will put instructions from https://www.pcsuggest.com/install-glmark2-debian/ later.
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.
I used the following references to make this gist:
- https://www.pcsuggest.com/gpu-benchmarking-and-stress-testing-in-linux/
- https://ubuntuforums.org/showthread.php?t=2317365
- https://www.pcsuggest.com/install-glmark2-debian/
Feel free to comment if you have any issues or to improve this gist.