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
39
votes
4 answers

library is linked but reference is undefined

I'm trying to compile an openCL program on Ubuntu with an NVIDIA card that worked once before, #include #include #include using namespace std; int main() { cl_platform_id platform; cl_device_id device; …
user615457
  • 817
  • 1
  • 7
  • 13
39
votes
2 answers

Causes for CL_INVALID_WORK_GROUP_SIZE

when I change the work group size from 16 to 32 or something bigger I get an CL_INVALID_WORK_GROUP_SIZE error. matrix_size is 64. localWorkSize[0] = groupsize; localWorkSize[1] = localWorkSize[0]; globalWorkSize[0] = matrix_size; …
Framester
  • 33,341
  • 51
  • 130
  • 192
38
votes
2 answers

OpenCL, Vulkan, Sycl

I am trying to understand the OpenCL ecosystem and how Vulkan comes into play. I understand that OpenCL is a framework to execute code on GPUs as well as CPUs, using kernels that may be compiled to SPIR. Vulkan can also be used as a compute-API…
cor3ntin
  • 876
  • 1
  • 7
  • 9
36
votes
8 answers

Can I program Nvidia's CUDA using only Python or do I have to learn C?

I guess the question speaks for itself. I'm interested in doing some serious computations but am not a programmer by trade. I can string enough python together to get done what I want. But can I write a program in python and have the GPU execute it…
Aquateenfan
  • 401
  • 1
  • 4
  • 5
33
votes
2 answers

OpenCL vs OpenMP performance

Have there been any studies comparing OpenCL to OpenMP performance? Specifically I am interested in the overhead cost of launching threads with OpenCL, e.g., if one were to decompose the domain into a very large number of individual work items (each…
Robert
  • 673
  • 2
  • 7
  • 8
32
votes
8 answers

How to use OpenCL on Android?

For plattform independence (desktop, cloud, mobile, ...) it would be great to use OpenCL for GPGPU development when speed does matter. I know Google pushes RenderScript as an alternative, but it seems to be only be available for Android and is…
Rodja
  • 7,998
  • 8
  • 48
  • 55
30
votes
4 answers

OpenCL: work group concept

I don't really understand the purpose of Work-Groups in OpenCL. I understand that they are a group of Work Items (supposedly, hardware threads), which ones get executed in parallel. However, why is there this need of coarser subdivision ? Wouldn't…
Carmellose
  • 4,815
  • 10
  • 38
  • 56
28
votes
5 answers

Are either the IPad or IPhone capable of OpenCL?

With the push towards multimedia enabled mobile devices this seems like a logical way to boost performance on these platforms, while keeping general purpose software power efficient. I've been interested in the IPad hardware as a developement…
NoMoreZealots
  • 5,274
  • 7
  • 39
  • 56
28
votes
7 answers

How to obtain OpenCL SDK?

I was perusing http://www.khronos.org/ web site and only found headers for OpenCL (not OpenGL which I don't care about). How can I obtain OpenCL SDK?
Roman Kagan
  • 10,440
  • 26
  • 86
  • 126
27
votes
1 answer

Does TensorFlow plan to support OpenCL?

I am under the impression that TF only supports CUDA. From my research, the only way to get it to support OpenCL and AMD GPUs is to get a separate "adapter" module such as TF Coriander and suffer through the performance failure: From the…
user8866053
27
votes
5 answers

CUDA / OpenCL within a Virtual Machine / Hypervisor

Anyone know of any virtualisation solutions that either allow CUDA/OpenCL access directly or implement CUDA/OpenCL abstraction. UPDATE: Thank you those who commented. While classical 'desktop' virtualization would be nice, I suspect the likes of…
Bolster
  • 7,460
  • 13
  • 61
  • 96
27
votes
1 answer

Xcode refuses to build one of my OpenCL projects but builds another one successfully

I've got two projects in Xcode, both of them use OpenCL and cl.hpp - OpenCL wrappers for C++. I'm on Mac OS 10.11.4, using clang-703.0.29 version 7.3.0 and the latest (and pretty bizarre) version of Xcode (Version 7.3 (7D175)). The first project…
ForceBru
  • 43,482
  • 10
  • 63
  • 98
27
votes
4 answers

Does Android support OpenCL?

Recently I want to develop the parallel computing application on android use OpenCL. As far as I know, Android system does not include "libopencl.so",but there are still some webs or blogs show OpenCL development on android. Does Android support…
liu jie
  • 281
  • 1
  • 3
  • 3
27
votes
4 answers

openacc vs openmp & mpi differences ?

I was wondering what are the major differences between openacc and openmp. What about MPI, cuda and opencl ? I understand the differences between openmp and mpi, especially the part about shared and distributed memory Do any of them allow for a…
Sid5427
  • 721
  • 3
  • 11
  • 19
26
votes
1 answer

How to use graphics memory as RAM?

Since graphics cards provide large amounts of RAM (0.5GiB to 2GiB) and API access to the GPU is not that difficult with CUDA, Stream and more portable OpenCL I wondered if it is possible to use graphics memory as RAM. Grahics RAM might have a larger…
mbx
  • 6,292
  • 6
  • 58
  • 91