Check the ROP unit count under Linux? Affects all RTX 50XX cards

This is fantastic, thank you @Miro256. At least, contrary to some trolls here, who are just big mouth but contributed nothing except unnecessary flamng, you found a solution.

My output is:

./rop 
ROP unit count: 14
ROP operations factor: 8
ROP operations count: 112

All good.

There are a lot of useful functions returning stats there. Could be of interest to the author of CPU-X, I will contact him.

Nice, would be cool to see more info in CPU-X.
Btw @zebcom, happy forum anniversary. ;)

Also, nvidia devs, you could have given us a pointer here. You might have a lot to do because of the 5000 series release but stillā€¦
Hats off to @Miro256 for finding this.

1 Like

oh yeah, happy anniversary @zebcom ! :)

ā€¦it uses the nvidia-smi command lineā€¦ and that method is almost guaranteed to require the open kernel modulesā€¦

Absolutely unreal.

Edit: lmao you people are funny.

ā€¦it uses the nvidia-smi command lineā€¦ and that method is almost guaranteed to require the open kernel modulesā€¦

Absolutely unreal.

I do not know why you insist on posting off-topic, apart from a desire to troll.

Since CPU-X reports infos on motherboard, CPU, GPU and more from many brands, it obviously does not rely on one software to gather the data, but on the contrary can tap in many APIs to display info.

PS: the author of CPU-X has validated the proposal. Feel free to approach him and explain to him how he is mistaken.

1 Like

Thank you very much @morgwai666 and @shelter for your kind words!

By the way the author of CPU-X on Github has tagged the proposal as ā€œFeatureā€ and ā€œGood first issueā€. I will see if he needs further info.

1 Like

Itā€™s been 5 days. Why havenā€™t you submitted a PR?

I was on holiday. And I will need to look into the CPU-X code first, to learn how it is structured.

i was searching few hours for this info how find that ROPS count on linux , thanks super much you saved me installation of windows again : ) thanks for nice linux drivers nvidia, NOT : ( : ( : (

Iā€™m running Nobara 41. the rop.c fails with this:
/dev/nvidiactl/dev/nvidia0Failed to open nvidiactlsetioctlprintffwritelibc.so.6GLIBC_2.2.5GLIBC_2.4GLIBC_2.34__gmon_start__<ui Fii
Failed to allocate client
Failed to open nvidia0
Failed to allocate device
Failed to allocate subdevice
Failed to get ROP count
ROP unit count: %d
ROP operations factor: %d
ROP operations count: %d

could you help me figure out whatā€™s going on? iā€™m not a C programmer. all the utilities that itā€™s trying to call seem to be installed

Since I was asked about this, let me clarify the license. I am releasing this program under the MIT license, just like open-gpu-kernel-modules. Note that the data type declarations were copied verbatim from open-gpu-kernel-modules.

Attribution for my part is optional, however you should probably attribute NVIDIA for theirs.

Not sure. That output makes no sense to me. Itā€™s like you dumped a bunch of strings from the executable instead of executing it. What are the exact steps you made since downloading the file?

I downloaded the rop.txt. Renamed it to rop.c. Ran gcc rop.c. That created the a.out file in the same folder. Ran cat a.out - among the unreadable symbols there was the snippet from the original post.
I posted the entire rop.txt into chatGPT and asked it to help me confirm I have all the necessary tools to run the rop.c - it looked like I do. The only change I had to make was to the Nvidia persistence daemon. For some reason on nobara itā€™s disabled by default and I had to create a user for it. But that didnā€™t help when I re-ran gcc rop.c

Thatā€™s not how you run an executable. Try ./a.out.

lol - duh! thank you so much!
ā•°ā”€ ./a.out
ROP unit count: 14
ROP operations factor: 8
ROP operations count: 112

Note that a.out is the default output of gcc, You would rather use gcc roc.c -o roc_count to create an executable called roc_count (there is no meaning of ā€œ.exeā€ extension in Unix, so no reason to have one).

1 Like

Thanks for the app.

Picked up a 5070 (which is performing like a steaming pile at about 5% of expected performance with the current driver unfortunately) but hereā€™s what it reports for me:
ROP unit count: 10
ROP operations factor: 8
ROP operations count: 80

Yes this is the correct count for 5070 non-Ti.

1 Like

Zotac AMP 4090

ROP unit count: 22
ROP operations factor: 8
ROP operations count: 176