@stiv: It's part of the Mesa library, and comes with the package mesa-utils on Ubuntu.
– greyfadeMar 13 '15 at 18:20

2

aticonfig doesn't appear to be available since the retirement of fglrx. nvclock also appears to have been abandoned since the last version was for trusty. Do you have any updated solutions? Here's what I have so far..
– Elder GeekDec 14 '17 at 23:16

2

glxinfo | grep "Device" worked well enough for me on an Intel GPU
– John HamiltonMay 26 '18 at 14:10

Had to put gksu before the command in the menu to get lshw-gtk to work.
– robin0800Feb 15 '11 at 10:55

Any updates? I'm a fan of the command but the only clock rate (frequency) it seems to provide for me is the base bus clock 33MHz. I'm attempting to bring this Q&A up to date. Thank you!
– Elder GeekDec 14 '17 at 23:31

1

Apologies, new to Deep Learning. What should it say if I have a GPU? It says product: 2nd Generation Core Processor Family Integrated Graphics Controller
– frankApr 17 '18 at 2:13

This is the only correct answer in on-demand cloud/HPC cluster environment on which glxinfo or lspci both fail (the former because there's no OpenGL and display, the latter because the nVidia graphics card is abstracted by a graphics controller like Matrox G200eW3). The folder name under gpus is 0000:3b:00.0 or 0000:d8:00.0 for me, so we should type: cat /proc/driver/nvidia/gpus/0000:3b:00.0/information. The lovely Tesla V100-PCIE-16GB model shows that the qsub job limit is satisfied as desired.
– user5280911Oct 6 '18 at 7:40

I'm not seeing the video card frequency and memory in this answer. There are far simpler methods to obtain the model of GPU which appears to be all you are giving us. I'm not sure what this adds to the existing answers.
– Elder GeekDec 10 '17 at 17:16

1

The screenfetch program does the same thing and doesn't require a PPA to install.
– Braden BestJan 30 '18 at 19:31

It's a shell script. Plus I linked to its github as well so you can just use it as a script.
– HaoZekeJan 30 '18 at 19:36

GPU= All this bit does is grab the 3rd field from 'lspci' output filtered via 'grep' for VGA which corresponds to the video chip.

RAM= All this bit does is set variable cardid equal to the first field of output from lspci matching "VGA" and feeds that as a request for -v verbose output from lspci for that specific -s device, further filtering the output by grep for the string " prefetchable" as this contains the memory on the card itself (note the preceding space as we don't want to match "non-prefetchable" in our output.

For clock rate on Intel integrated graphics (Tested on I3 and I5)

execute the command sudo find /sys -type f -name gt_cur* -print0 | xargs -0 cat
This dives into the /sys tree to locate the gt_cur_freq_mhz
file which on my I3 is /sys/devices/pci0000:00/0000:00:02.0/drm/card0/gt_cur_freq_mhz and prints the content. which in my case under extremely light load is 350 as in 350 MHz which corresponds to the minimum frequency found in /sys/devices/pci0000:00/0000:00:02.0/drm/card0/gt_min_freq_mhz and when running glxgears and glmark2 results in
1050 as in 1050 MHz which corresponds to the maximum frequency found in /sys/devices/pci0000:00/0000:00:02.0/drm/card0/gt_max_freq_mhz

Note: I am unable to test the above as my trusty GeForce 210 isn't supported and this works only on Kepler or newer GPUs as indicated by
`nvidia-smi -stats --help'

I do not currently have any solutions for clock rate on AMD cards and do not have the hardware available for testing. I will however say that to the best of my knowledge the aticonfig mentioned in the accepted answer no longer exists and it appears that nvclock isn't available for anything since trusty.

If you would like to have simple information, you could try gpustat. It is very good and simple.

The author gives the following installation instructions:

Install from PyPI:

pip install gpustat

To install the latest version (master branch) via
pip:

pip install git+https://github.com/wookayin/gpustat.git@master

If you
don't have root privilege, please try to install on user namespace:
pip install --user. Note that from v0.4, gpustat.py is no more a
zero-dependency executable. However, in rare cases you'll need a
single executable script (legacy), you can also try:

Well, this answer assumes you have a server with NVIDIA-GPUs. You have three ways:

To get just a short gist: nvidia-smi

To get a detailed one : nvidia-smi -q. You'll get multiple screens of detailed info if you more than 1 gpu.

Do a ls /proc/driver/nvidia/gpus/. It'll display the GPU-bus location as folders.
Now, run the following command for each of the gpu bus locations. Fill <gpu-id> with bus-location: cat /proc/driver/nvidia/gpus/<gpu_id>/information