English 中文(简体)
NVidia videocards - getting statistic
原标题:
  • 时间:2010-03-04 11:54:32
  •  标签:
  • nvidia

i need to write few applications about lowlevel videocard controling for my coursework. For example - temperature, working SM s, managing access to them, etc. OS linux, tesla c1060.

Could you give me few advices where to search this kind of information?

CUDA does not provide these features. It must be some work with dev vidia* probabaly. or not? I ve never written something like this - any advices would be welcome.

Thanks.

UPD: nvidia-settings is good but does not provide all what i need. Mb there are some more ways how to do it on ccuda s ptx?

最佳回答

A couple of options spring to mind, you could use RivaTuner v2.24c from guru3d.com and/or CPU-ID for a bit more information. I have however, just noticed that you are using Linux so you should be able to install the latest NVidia drivers and run nvidia-settings -h to see the options to view Temperature and various other information. Best of luck!

问题回答

I know this is 2 years late, but if you are looking for a library oriented option Nvidia s NVML API does all of this. Check it out here! Thankfully the documentation is really well done. I had my c++ app polling my gpu s temperature in about an hour fiddling with it.

EDIT Here is some code to get the gpu temperature. Note, this code works (as is) for a one card system.

#include "nvml.h"

using namespace std;

Nvidia::Nvidia()
{
    nvmlInit();
}

Nvidia::~Nvidia()
{
    //dtor
}


unsigned int Nvidia::FetchTemp()
{
 unsigned int DeviceCount;
 nvmlReturn_t Rval=nvmlDeviceGetCount(&DeviceCount); //return type enum
 if(Rval!=0)
 {
     //Card read error
     return 0;
 }
 //Turn Count into index
 DeviceCount--;
 //Get Prereqs
 nvmlDevice_t Device;
 Rval=nvmlDeviceGetHandleByIndex(DeviceCount,&Device);
 if(Rval!=0)
 {
     //Card read error
     return 0;
 }
 nvmlTemperatureSensors_t TSensors=NVML_TEMPERATURE_GPU;

//Get Temperature
 unsigned int Temp=0;
 Rval=nvmlDeviceGetTemperature(Device,TSensors,&Temp);
 if(Rval!=0)
 {
     //Card read error
     return 0;
 }
 return Temp;
}

You can write a DirectX program to query the capabilities of the card, if you are interested in which functions it supports.





相关问题
NVidia videocards - getting statistic

i need to write few applications about lowlevel videocard controling for my coursework. For example - temperature, working SM s, managing access to them, etc. OS linux, tesla c1060. Could you give me ...

nvidia cuda using all cores of the machine

I was running cuda program on a machine which has cpu with four cores, how is it possible to change cuda c program to use all four cores and all gpu s available? I mean my program also does things ...

creating arrays in nvidia cuda kernel

hi I just wanted to know whether it is possible to do the following inside the nvidia cuda kernel __global__ void compute(long *c1, long size, ...) { ... long d[1000]; ... } or the following ...

Calculate the angle between two triangles in CUDA

I wanted to calculate the angle between two triangles in 3D space. The two triangles will always share exactly two points. e.g. Triangle 1: Point1 (x1, y1, z1), Point2 (x2, y2, z2), Point3 (...

How do I see the commands that are run by GNU make?

I m trying to debug a complex Makefile. How do you get GNU make to print all the commands it runs? I couldn t find the answer in the man page (using the -d flag doesn t seem to print it). (This isn t ...

glDrawElements flicker and crash

I m getting a fishy error when using glDrawElements(). I m trying to render simple primitives (mainly rectangles) to speed up drawing of text and so forth, but when I call glDrawElements() the WHOLE ...

热门标签