Comments (6)
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.
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.
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.
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.
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.
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)
- segfault with CUDA 11.3 HOT 2
- Help wanted HOT 11
- Deleted AppVeyor artifact HOT 2
- windows release hangs indefinitely with Intel Iris XE OpenCL3 GPU HOT 4
- When downloading clinfo (windows) get many warnings from windows defender HOT 1
- Help wanted Build error (ubuntu under termux environment)
- No support for staged installs HOT 2
- Device Topology (NV) error HOT 6
- CL_PROGRAM_BUILD_LOG returns getWGsizes:1504 create kernel error -45 HOT 1
- NULL platform behavior HOT 1
- Information about supported image formats HOT 2
- Typo: "comfornace"
- Preferred work group size multiple (kernel) not working with latest Nvidia compiler HOT 5
- getWGsizes error: syntax error at 'kernel' HOT 2
- clinfo hangs on configurations with two AMD GPU and open source rocm HOT 1
- JSON output is invalid HOT 1
- OpenCL device not reporting with Mali-Gpu HOT 3
- make appimage or binary file, it can run every HOT 1
- On some systems, Clinfo reports twice as many platforms as actually exist. HOT 7
- Clinfo hangs on mesa 23 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clinfo.