#12 Crash When OpenCL.DLL is missing.

closed-fixed
nobody
None
5
2011-09-10
2011-08-19
Anonymous
No

When Cloo assembly is loaded by the application, it automatically tries to load OpenCL.dll from the host operating system. This hapens when the application is being loaded, and no code has been executed yet.

When a computer does not have OpenCL support, Driver's OpenCL.dll is missing, and the application simply crashes because it can't find the assembly.

The expected behavior would be that OpenCL (or is this OpenTK responsability?) to do a late binding of the OpenCL dll, and in case OpenCL.dll is not found, simply return zero OpenCL Platforms and devices.

Discussion

  • nythrix

    nythrix - 2011-08-21

    I haven't thought about this yet. That's why there's no guards against missing OpenCL.dll. Will check things out.

     
  • nythrix

    nythrix - 2011-08-21
    • status: open --> pending
     
  • nythrix

    nythrix - 2011-09-10

    Implemented.
    ComputePlatform.Platforms.Count now returns zero instead of throwing DllNotFoundException, if no OpenCL drivers are found.

    Thanks.

     
  • nythrix

    nythrix - 2011-09-10
    • status: pending --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks