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
2
votes
2 answers

c++ opencl return CL_OUT_OF_RESOURCES

I'm learning OpenCL and trying to apply a black and white on a picture but enqueueNDRangeKernel return CL_OUT_OF_RESOURCES and I don't understand why. OpenCL is running on a GTX 980M, and OpenCL 1.2 . #define _CRT_SECURE_NO_WARNINGS #include…
Soro
  • 21
  • 2
2
votes
3 answers

Sparse array in CUDA or OpenCL

I have a large array (say 512K elements), GPU resident, where only a small fraction of elements (say 5K randomly distributed elements - set S) needs to be processed. The algorithm to find out which elements belong to S is very efficient, so I can…
Paul Jurczak
  • 7,008
  • 3
  • 47
  • 72
2
votes
1 answer

Enable double precision in OpenCL via CUDAfy

I am working with CUDAfy and C#. For my kernel, I need double precision. In CUDA, this is no problem, it is automatically supported. However, in order to support non NVIDIA hardware, the user should be able to use OpenCL, too. Here, as far as I…
mgulde
  • 215
  • 3
  • 10
2
votes
1 answer

OpenCL clCreateBuffer() crashes the program

I have taken up OpenCL programming as part of a university project and I have a bit of a problem when I try to input data to a buffer object during the clCreateBuffer() routine. The program is a simple two-dimensional matrix addition. The code is as…
kmentis
  • 23
  • 5
2
votes
1 answer

OpenCL: How to check for build errors using the C++ wrapper

If I build an openCL Program from source code like this cl::Program program = cl::Program(context, sourceCode); program.build(devices); I would like to check if this was successful. I saw a few examples of how to do this in C, but since my project…
NOhs
  • 2,780
  • 3
  • 25
  • 59
2
votes
0 answers

Access violation problems in OpenCL C++

I tried to get list of platforms beform calculating: vector platforms; cl::Platform::get(&platforms); but have an exception: unhandled exception in "0x00000000" in "Test.exe": 0xC0000005: Access violation. I have Radeon Mobility HD…
Pavel
  • 71
  • 8
2
votes
1 answer

OpenCL kernel slower than normal Java loop

I've been looking into OpenCL for use with optimizing code and running tasks in parallel to achieve greater speed over pure Java. Now I'm having a bit of an issue. I've put together a Java program using LWJGL, which as far as I can tell,should be…
user2649681
  • 750
  • 1
  • 6
  • 23
2
votes
0 answers

Convolution/FFT algorithm for a machine with slow memory and no cache?

I'm trying to write a convolution function for a GPU using OpenCL. Benchmarking shows that the GPU's data load instructions are very expensive and the run time scales linearly with the total number of LD instructions, indicating the GPU as little or…
user3528438
  • 2,737
  • 2
  • 23
  • 42
2
votes
2 answers

OpenCL Matrix Multiplication Altera Example

I am very new to OpenCL and am going through the Altera OpenCL examples. In their matrix multiplication example, they have used the concept of blocks, where dimensions of the input matrices are multiple of block size. Here's the code: void…
user3509540
  • 41
  • 1
  • 7
2
votes
2 answers

OpenCL error executing on Xilinx FPGA

I am trying to use SDAccel to build an OpenCL application; then to run it on an PCIe FPGA-based card (alpha data). I have tried to use the examples given but no success so far. Also there was no similar thread (and no respond to my queries) in any…
L30nardo SV.
  • 323
  • 1
  • 3
  • 14
2
votes
2 answers

How to know if GPU computing is used in OpenCv4Android native

I am programming a native app on Android using Opencv4Android. I am using the Opencv Manager. At the staup of the app, I receive these logs: But how to know if openCv is really using OpenCl for acceleration or not ?
MadMax007
  • 63
  • 4
2
votes
2 answers

preferred vector width in opencl device

I'm a beginner in OpenCL and am trying to run the sample codes of the "OpenLC in Action" book. I have the following code to get the preferred vector width of my device. The platforms detected on my computer are from Intel Core i7 and HD graphics and…
mfaieghi
  • 570
  • 2
  • 9
  • 24
2
votes
1 answer

How to force OpenCL not to re-align structs?

I am building a kernel code that captures the triangles inside my current GL scene. For that I send my vertex streams along with my indices to the kernel code. Here's the declaration for my kernel entry: __kernel void CaptureTriangles( const…
2
votes
1 answer

How to compile CLOGS library

I want to compile CLOGS library.I follow this manual. I use Visual Studio 2010,python 3.4 in windows 10 x64. I didn't know anything about waf building system.I didn't know how to set Boost's include path. So I copy boost to the include path of msvc…
FeizCNU
  • 73
  • 7
2
votes
1 answer

OpenCL - OpenGL - Interop: How to fill a cl::ImageGL

I have an issue with the OpenCL OpenGL interop mode: cl::ImageGL imageFromGL(context, CL_MEM_READ_WRITE, GL_TEXTURE_2D, 0, myGL->textures[0], errNum); so there are various problems: How do I get a const & cl_context from my cl_context…
3DExtended
  • 153
  • 15
1 2 3
99
100