2 Replies Latest reply on Dec 13, 2017 7:41 PM by orionrenderer

    RadeonRays IntersectionApi Create triggers exception

    orionrenderer

      Hi,

       

      I am trying to use the RadeonRays 2.0.1 sdk but i have a runtime error saying "Cannot read the contents of a file"

      when creating the intersection api.

       

      My code snippet:

       

      int nativeidx = -1;
      
      IntersectionApi::SetPlatform(DeviceInfo::kOpenCL);
      
      for (auto idx = 0u; idx < IntersectionApi::GetDeviceCount(); ++idx)
      {
           DeviceInfo devinfo;
           // That function does not fill the platform field :/
           IntersectionApi::GetDeviceInfo(idx, devinfo);
      
           if (devinfo.type == DeviceInfo::kGpu)
           {
                nativeidx = idx;
                break;
           }
      }
      
      if (nativeidx == -1)
           throw CreateIntersectorException("Unable to find compatible OpenCL device");
      
      try
      { 
           m_api = IntersectionApi::Create(nativeidx);
           ORION_ASSERT(m_api != nullptr);
      }
      catch (std::exception& e)
      {
           throw CreateIntersectorException(e.what());
      }
      
      
      
      
      
      

       

      My Hardware:

      Intel i7 6700HQ

      Geforce GTX 960M, driver 388.59

       

      Compiler:

      vs2017 since i am not able to download vs2015. SDK built without any change

      WindowSDK: 10.0.16299.0

      Toolset: v141

       

       

       

      Thanks alot !