0 Replies Latest reply on Nov 16, 2015 11:00 AM by noxim

    IntersectionApi::create just throwing std::runtime_error at memorylocation 0x--------

    noxim

      Well, basicly the title -_-

      I'm trying to run the code in the FireRays SDK tutorial:

       

      IntersectionApi *api;

       

      void main()

      {

         int gpuidx = -1;

        for (int idx = 0; idx < IntersectionApi::GetIntersectionDeviceCount(); ++idx)

        {

        IntersectionDeviceInfo const& devinfo(IntersectionApi::GetIntersectionDeviceInfo(idx));

        if (devinfo.type == IntersectionDeviceInfo::kGpu && devinfo.apis & IntersectionDeviceInfo::kOpenCl)

        {

        gpuidx = idx;

        }

        cout << devinfo.name << endl;

        }

       

        int apitype = IntersectionDeviceInfo::kOpenCl;

        api = IntersectionApi::Create(0, &gpuidx, &apitype, 1); //THIS IS THROWING THE ERROR

       

      I have no idea whats causing the issue, maybe I'm missing some piece of code that doesn't read in the tutorial?

       

      AMD FX-8320

      NVIDIA GTX 960 (plz don't hate! I used to have a HD 7770!) 358.91

      Windows 10 64bit