compute-runtime | Intel® Graphics Compute Runtime for oneAPI Level Zero | GPU library
kandi X-RAY | compute-runtime Summary
kandi X-RAY | compute-runtime Summary
The Intel(R) Graphics Compute Runtime for oneAPI Level Zero and OpenCL(TM) Driver is an open source project providing compute API support (Level Zero, OpenCL) for Intel graphics hardware architectures (HD Graphics, Xe).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of compute-runtime
compute-runtime Key Features
compute-runtime Examples and Code Snippets
Community Discussions
Trending Discussions on compute-runtime
QUESTION
I currently have a program running all the time using my Nvidia GPU. I would like to run another one aside, which would use OpenCV with OpenCL. I use Ubuntu 18.04 and my processor is an Intel i7-9750H (with UHD Graphics 630).
I run this C++ code to detect the available devices:
...ANSWER
Answered 2020-Oct-28 at 22:38This is a somewhat messy situation. There is a difference between using multiple OpenCL devices from a single platform and different platforms.
Question 2: Each OpenCL implementation/SDK/Runtime you install will show up as a platform. The context class of OpenCV is bound to a single platform and can only work with the corresponding devices. The constructor only allows to specify a device type, so it probably queries OpenCL and uses the first platform with that device type (or just the first). That's why OpenCV only shows the Nvidia device.
Question 1: Creating another context reflecting the Intel platform would be possible by using the OpenCL API directly and then calling OpenCV's fromHandle()
or fromDevice()
functions to create the OpenCV Context object (the clinfo source is an example for the required code). But, using different platforms means linking to different OpenCL libraries (indirectly at runtime through the compile-time linked libOpenCL). I.e. memory objects, etc. cannot be shared between the different contexts, so practical usability is rather limited unless you have independent problems that you'd like to compute in parallel on both devices.
Bonus:
Your clinfo
output shows 3 platforms (Nvidia OpenCL 1.2, Intel GPU OpenCL 3.0, Intel CPU OpenCL 2.1), and you see the warning:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install compute-runtime
.deb packages for Ubuntu are provided along with installation instructions and Release Notes on the release page.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page