[elrepo] nvidia-detect feature enhancement
Bonnie King
bonniek at fnal.gov
Mon Feb 16 13:38:40 EST 2015
>
> Updated packages (nvidia-detect-346.35-2) are currently syncing to the
> mirrors and should be available shortly from the elrepo testing repository:
>
> yum --enablerepo=elrepo-testing update nvidia-detect
>
> I'd appreciate if folks could test and confirm they work as expected. On
> my el5 desktop system:
With multi-GPU cards, two lines are printed:
[root at host ~]# nvidia-detect
kmod-nvidia-304xx
kmod-nvidia-304xx
[root at hody ~]# lspci |grep -v vga
04:00.0 VGA compatible controller: nVidia Corporation NV43 [Quadro NVS
440] (rev a2)
05:00.0 VGA compatible controller: nVidia Corporation NV43 [Quadro NVS
440] (rev a2)
I was of two minds on this, and printing both is probably the correct
thing to do, but this explains why in my original patch terse_output()
prints according nv_lookup_device_id()'s return code.
Of course this breaks if you had two different GPU versions in the
system (I don't have any examples of that, and you wouldn't be able to
probe both module versions at once, right?)...
My reasoning was that one-line output is nicer, and that the output
you'll get is as reliable as the program's exit code.
Thoughts?
--
Bonnie King
Linux Administrator
Fermi National Accelerator Laboratory
630-840-8761 office
773-799-4608 cell
www.fnal.gov
More information about the elrepo
mailing list