Code Monkey home page Code Monkey logo

Comments (6)

Oblomov avatar Oblomov commented on June 16, 2024

This is an interesting idea, but it's not trivial to implement. The problem is that there is no (official) way to find which version of OpenCL is supported by the ICD loader (libOpenCL) —the exception being ocl-icd, which provides its own extension to query for the supported profile. Without that, the only way to check for the supported version would be to try and actuallly call a higher-version function, trapping segmentation faults. Not exactly robust …

from clinfo.

Oblomov avatar Oblomov commented on June 16, 2024

This is now implemented in the latest master branch. Heuristics for OpenCL version support by the ICD loader can be improved, but those may be opened as separate enhancement requests.

from clinfo.

UniqueFool avatar UniqueFool commented on June 16, 2024

the only way to check for the supported version would be to try and actuallly call a higher-version function, trapping segmentation faults. Not exactly robust …

haven't looked at your code yet, but would those DSO pointers not be NULL (invalid) if unsupported ?

from clinfo.

Oblomov avatar Oblomov commented on June 16, 2024

Yes, that's exactly the way I've implemented it in the code: I do a dlsym of a later function and try to guess the supported version from that.

from clinfo.

UniqueFool avatar UniqueFool commented on June 16, 2024

ok, thanks for clarifying that - I will be testing this with different platforms and report back here.
Thanks also for being so responsive, much appreciated !

from clinfo.

UniqueFool avatar UniqueFool commented on June 16, 2024

BTW: This may also be helpful to provide even better runtime information, it's a collection of kernels that are known to crash different platforms: https://github.com/eholk/opencl-stress

from clinfo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.