Comments (5)
The library will use functions based on the OpenCL version reported by the CL/cl.h
header you compile against. In order to properly run against NVIDIA's OpenCL, you should set your header include paths to point to the CL/cl.h
header provided by NVIDIA (mine is in /usr/include/nvidia-current/
). Same goes for compiling against Intel's OpenCL (which is /opt/intel/opencl-1.2-3.0.56860/include/
for me).
Let me know if this doesn't work.
Cheers,
Kyle
from compute.
The capability of my computer reported by Intel OpenCL "capsbasic" is:
Number of available platforms: 2
Platform names:
[0] NVIDIA CUDA
[1] Intel(R) OpenCL [Selected]
Number of devices available for each type:
CL_DEVICE_TYPE_CPU: 1
CL_DEVICE_TYPE_GPU: 0
CL_DEVICE_TYPE_ACCELERATOR: 0
*** Detailed information for each device ***
CL_DEVICE_TYPE_CPU[0]
CL_DEVICE_NAME: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
CL_DEVICE_AVAILABLE: 1
CL_DEVICE_VENDOR: Intel(R) Corporation
CL_DEVICE_PROFILE: FULL_PROFILE
CL_DEVICE_VERSION: OpenCL 1.2 (Build 63463)
CL_DRIVER_VERSION: 1.2
CL_DEVICE_OPENCL_C_VERSION: OpenCL C 1.2
Number of available platforms: 2
Platform names:
[0] NVIDIA CUDA [Selected]
[1] Intel(R) OpenCL
Number of devices available for each type:
CL_DEVICE_TYPE_CPU: 0
CL_DEVICE_TYPE_GPU: 1
CL_DEVICE_TYPE_ACCELERATOR: 0
*** Detailed information for each device ***
CL_DEVICE_TYPE_GPU[0]
CL_DEVICE_NAME: GeForce 505
CL_DEVICE_AVAILABLE: 1
CL_DEVICE_VENDOR: NVIDIA Corporation
CL_DEVICE_PROFILE: FULL_PROFILE
CL_DEVICE_VERSION: OpenCL 1.0 CUDA
CL_DRIVER_VERSION: 286.10
CL_DEVICE_OPENCL_C_VERSION: OpenCL C 1.1
Therefore I have to write the code to get the second platform and pass it to compute::device . But I think a OpenCL library can find different version of different platform. It may be 1.0 or latest. So what's the way to solve it?
from compute.
Interesting. I'll have to thing more on how to support devices from two different platforms with two different OpenCL versions simultaneously. For now, can you try compiling against the OpenCL version 1.1 headers? That should serve as the "lowest common denominator" and allow you to use both devices.
from compute.
So I ran into this problem again. I think I have a fix here (54c2ab3). Could you try it out and let me know if it works for you?
from compute.
Fixed in 88b6a8b.
from compute.
Related Issues (20)
- Build program failure when use default_random_engine. HOT 1
- Can we use iterator in valarray?
- how about android devices HOT 2
- how to fill array of custom user structures ?
- how to reduce "array of custom user structures" with custom function ?
- vectorized lower_bound HOT 2
- Adding nullptr to std::string HOT 1
- Cannot run example on README.md: what(): Out of Host Memory HOT 1
- How can I return a custom struct from a BOOST_COMPUTE_FUNCTION
- BOOST_COMPUTE_CLOSURE triggers run-time compiling every time the closure value changes
- Unwanted function call for std::map::operator[] HOT 1
- g++ appears to resolve OpenCL/cl.h header but clang does not.
- How to convert a cv::UMat to cv::Mat?
- Minimum Boost Version
- Cmake error on android
- transform_reduce on M1 Pro
- Please do not set CMAKE_MODULE_PATH.
- Why does the transform(...) method work only on vectors with values of type <float> ?
- Get rid of `BOOST_COMPUTE_ADAPT_STRUCT` integrating boost::pfr HOT 1
- Modular Boost C++ Libraries Request
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 compute.