Questions tagged [opencl]

OpenCL (Open Computing Language) is a framework for writing programs that execute across heterogeneous platforms consisting of CPUs, GPUs, and other processors.

This tag refers to the OpenCL (Open Computing Language) by Khronos Group. It is the first open, royalty-free standard for cross-platform, parallel programming of modern processors found in personal computers, servers and handheld/embedded devices. Using OpenCL, one can affect execution of parallel computations greatly improving speed and responsiveness of a wide spectrum of applications: From gaming and entertainment to scientific and medical software.

OpenCL is an API and a C99-like language; for each device, implementations are provider-specific. Some of the OpenCL implementation providers are:

Questions about OpenCL can be asked here along with the vendor/provider and architecture details. Bug reports should be discussed in the respective forums of the vendors NVIDIA Forums, Intel Forums, AMD Forums

Books

5705 questions
25
votes
7 answers

OpenCL - How to I query for a device's SIMD width?

In CUDA, there is a concept of a warp, which is defined as the maximum number of threads that can execute the same instruction simultaneously within a single processing element. For NVIDIA, this warp size is 32 for all of their cards currently on…
Jonathan DeCarlo
  • 2,798
  • 1
  • 20
  • 24
25
votes
12 answers

Error -1001 in clGetPlatformIDs Call !

I am trying to start working with OpenCL. I have two NVidia graphics card, I installed "developer driver" as well as SDK from NVidia website. I compiled the demos but when I run ./oclDeviceQuery I see: OpenCL SW Info: Error -1001 in…
tnorgd
  • 1,580
  • 2
  • 14
  • 24
25
votes
4 answers

Only run C preprocessor in cmake?

I'm trying to use cmake to simplify distributing my OpenCL program. I have a kernel file which includes several headers and other source files, and I want to have a single self contained executable. My plan is to have cmake run the C preprocessor on…
arsenm
  • 2,903
  • 1
  • 23
  • 23
24
votes
4 answers

What is the point of GLSL when there is OpenCL?

Consider this the complete form of the question in the title: Since OpenCL may be the common standard for serious GPU programming in the future (among other devices programming), why not when programming for OpenGL - in a future-proof way - utilize…
j riv
  • 3,593
  • 6
  • 39
  • 54
24
votes
2 answers

how to compile opencl project with kernels

I am totally a beginner on opencl, I searched around the internet and found some "helloworld" demos for opencl project. Usually in such sort of minimal project, there is a *.cl file contains some sort of opencl kernels and a *.c file contains the…
wallen
  • 365
  • 1
  • 2
  • 5
24
votes
1 answer

Beginning OpenCL tutorials?

I have seen some videos and articles about how powerful OpenCL can be - and I'm hooked. The problem is there is a LOT less resources out there to help you with OpenCL then .. say OpenGL. I am looking for some pointers to some beginning OpenCL (e.g.…
PersonWithName
  • 848
  • 2
  • 13
  • 19
23
votes
2 answers

error code (-11):: what are all possible reasons of getting error "cl_build_program_failure" in OpenCL?

I am using ATI RV770 graphics card, OpenCl 1.0 and ati-stream-sdk-v2.3-lnx64 on linux. While running my host code which includes following two sections to build kernel program, i am getting error code (-11) i.e. cl_build_program_failure. Does it…
Gopal
  • 765
  • 1
  • 7
  • 19
23
votes
1 answer

What is the context switching mechanism in GPU?

As I know, GPUs switch between warps to hide the memory latency. But I wonder in which condition, a warp will be switched out? For example, if a warp perform a load, and the data is there in the cache already. So is the warp switched out or continue…
Zk1001
  • 2,033
  • 4
  • 19
  • 36
23
votes
0 answers

Is it possible to high performance computing by Golang and CUDA?

I've googled for a while and the only useful infos are: github.com/barnex/cuda5 mumax.github.io/ Unfortunately, the latest Arch Linux only provides CUDA 7.5 package, so the barnex's project may be not supported. Arne Vansteenkiste recommends…
Yang
  • 759
  • 2
  • 9
  • 30
23
votes
3 answers

OpenCL or CUDA Which way to go?

I'm investigating ways of using GPU in order to process streaming data. I had two choices but couldn't decide which way to go? My criterias are as follows: Ease of use (good API) Community and Documentation Performance Future I'll code in C and…
systemsfault
  • 15,207
  • 12
  • 59
  • 66
23
votes
2 answers

Compiling an OpenCL program using a CL/cl.h file

I have sample "Hello, World!" code from the net and I want to run it on the GPU on my university's server. When I type "gcc main.c," it responds with: CL/cl.h: No such file or directory What should I do? How can I have this header file?
sandra
  • 949
  • 3
  • 12
  • 25
22
votes
2 answers

Is available OpenCL on iOS

I found this thread on the forum Are either the IPad or IPhone capable of OpenCL? but is it quite old. Also, what I can gather that OpenCL is available to system libraries of iOS but not to public. Is there more info in this regard or any update ?
Ankuj
  • 713
  • 3
  • 10
  • 27
22
votes
4 answers

Why not using GPUs as a CPU?

I know the question is only partially programming-related because the answer I would like to get is originally from these two questions: Why are CPU cores number so low (vs GPU)? and Why aren't we using GPUs instead of CPUs, GPUs only or CPUs only?…
Maiss
  • 1,641
  • 4
  • 18
  • 23
21
votes
1 answer

Opencl function found deprecated by Visual Studio

I am getting started with opencl in VS using this tutorial: https://opencl.codeplex.com/wikipage?title=OpenCL%20Tutorials%20-%201 I am having trouble with setting up the host program. This is the code so far: const char* clewErrorString(cl_int…
PEC
  • 593
  • 1
  • 5
  • 16
21
votes
1 answer

CUDA vs OpenCL performance comparison

I am using CUDA 6.0 and the OpenCL implementation that comes bundled with the CUDA SDK. I have two identical kernels for each platform (they differ in the platform specific keywords). They only read and write global memory, each thread different…
user1096294
  • 829
  • 2
  • 10
  • 19