moodz

GPU Clock and Mem Clock return strange results in GetaAttrib

Discussion created by moodz on Aug 2, 2008
calDeviceGetAttribs returns strange clock values.

Hi the code stanza below produces the following output ...

        sizeof(CALuint) = 4

        RAM size = 512

        GPU clock = 244

        MEM clock = 94

For my HD4870 card the Ram is Ok but where does it get the strange clocks ?

BTW my card is clocking at 790 Mhz GPU and 1100 Mhz on Mem.

I am running Fedora 8 64 bit.

Thanx.

 

CALdeviceattribs  myCALdeviceattribs;
    myCALdeviceattribs.struct_size = (CALuint)(sizeof(myCALdeviceattribs));
    if (calDeviceGetAttribs(&myCALdeviceattribs, 0) != CAL_RESULT_OK)
    fprintf(stdout, "Error : CAL Get Attribs unsuccessful\n");
//////////////////////////////////////////////////////////////////////////
fprintf(stdout, "\tsizeof(CALuint) = %u\n\n",sizeof(CALuint)); 
CALuint memSiz = 0;
    memSiz = myCALdeviceattribs.localRAM;      
    fprintf(stdout, "\tRAM size = %u\n\n",memSiz); 
CALuint gpuClk = 0;
    gpuClk = myCALdeviceattribs.engineClock;      
    fprintf(stdout, "\tGPU clock = %u\n\n",gpuClk);
CALuint memClk = 0;
    memClk = myCALdeviceattribs.memoryClock;      
    fprintf(stdout, "\tMEM clock = %u\n\n",memClk);

Outcomes