12 Replies Latest reply on Jul 19, 2008 9:14 AM by ryta1203

    4850  devices not detected correctly by cal?

    cardinal.mendosa
      beginner

      sorry, i know this is a bit numpty...

      i have a radeon 4850 running on opensuse 11.0  using the latest drivers (v1.01.0-beta for lnx64)

      the x driver seems to work (i can use it with a display)

      but my test cal program fails to detect any devices attached.  the program:

      #include "cal.h"
      #include "calcl.h"

      #include #include #include #include 

      int main(int argc, char** argv)
      {
          // #0. init the card
          std::cout << 123 << std::endl;
          if (calInit() != CAL_RESULT_OK)
          {
              std::cout << "BAD: cal init failed. bailing. \n";
              return -1;
          }

          // #1. get the cal version
          CALuint v[3];
          calGetVersion(&v[0], &v[1], &v[2]);
          std::cout << "cal runtime version: " << v[0] << "." << v[1] << "." << v[2] << std::endl;

          // #2. get number of devices on the system
          CALuint ndev = -1;
          if (calDeviceGetCount(&ndev) != CAL_RESULT_OK)
          {
              std::cout << "BAD: failed to retrieve number of devices. \n";
          }
          std::cout << "number of cal devices: " << ndev << std::endl;

          // #3. get the 0th device info
          CALdeviceinfo dev_info;
          if(calDeviceGetInfo(&dev_info, 0) != CAL_RESULT_OK)
          {
              std::cout << "BAD: failed to retrieve device infor for device 0. \n";
          }

          return 0;
      }

       

      gives output:

      123
      cal runtime version: 1.1.1
      number of cal devices: 0
      BAD: failed to retrieve device infor for device 0.