opencl

OpenCL: does it play well with OpenMP, can I connect other languages to it, etc.

The 1.0 spec for OpenCL just came out a few days ago (Spec is here) and I've just started to read through it. I want to know if it plays well with other high performance multiprocessing APIs like OpenMP (spec) and I want to know what I should learn. So, here are my basic questions: If I am already using OpenMP, will that break OpenCL...

OpenCL books/tutorials?

Is there any openCL books out there? or in the pipeline? Any online openCL tutorial? I already looked at the usual pages like khronos/nvidia dev/opengl.org/ati dev/siggraph slides. Any other help or pointer is welcome :-D Thanks! ...

What future does the GPU have in computing?

Your CPU may be a quad-core, but did you know that some graphics cards today have over 200 cores? We've already seen what GPU's in today's graphics cards can do when it comes to graphics. Now they can be used for non-graphical tasks as well, and in my opinion the results are nothing short of amazing. An algorithm that lends itself wel...

How does the Levenberg–Marquardt algorithm work in detail but in an understandable way?

Im a programmer that wants to learn how the Levenberg–Marquardt curvefitting algorithm works so that i can implement it myself. Is there a good tutorial anywhere that can explain how it works in detail with the reader beeing a programmer and not a mathemagician. My goal is to implement this algorithm in opencl so that i can have it run ...

C++ Template preprocessor tool

Is there a compiler or standalone preprocessor which takes C++ files and runs a template expansion pass, generating new C++ code with expanded template instantiations? I remember such a tool in the mid-90s when templates were still new and experimental, and the preprocessor was a way to do template programming with compilers without nat...

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? ...

Is it possible to execute MIMD with OpenCL framework?

Hello: Soon enough we will have nVidia GTX 300 that would be able to execute multiple instrucions on multiple data (MIMD). I wonder if OpenCL can execute MIMD? ...

Why are GPU threads in CUDA and OpenCL allocated in a grid?

Im just learning OpenCL and im at the point when trying to launch a kernel. Why is it that the GPU threads are managed in a grid? I'm going to read more about this in detail but it would be nice with a simple explanation. Is it allways like this when working with GPGPU's? ...

Any open source library for sparse linear algebra in OpenCL?

I am looking for some sparse linear algebra OpenCL kernels such as blas vector/vector operations and matrix / vector operations but with sparse data structures. Ideally that library would feature most of scipy.sparse but using OpenCL kernels instead of scalar C code wrapped in python ndarrays. After some googling I could not find anythi...

Running OpenCL on hardware from mixed vendors

I've been playing with the ATI OpenCL implementation in their Stream 2.0 beta. The OpenCL in the current beta only uses the CPU for now, the next version is supposed to support GPU kernels. I downloaded Stream because I have an ATI GPU in my work machine. I write software that would benefit hugely from gains by using the GPU. However th...

using #include to load opencl code

i've seen this done long ago with hlsl/glsl shader code. using a #include on the source code file that pastes the code into a char* so that no file io happens at runtime. if i were to represent it as pseudo-code it would look a little like this: #define CLSourceToString(filename) " #include "filename" " const char* kernel = CLSourceToS...

GPU vs CPU performance for common algorithms

I'm interested to know if any common algorithms (sorting, searching, graphs, etc.) have been ported to OpenCL (or any GPU language), and how the performance compares to the same algorithm executed by the CPU. I'm specifically interested in the results (numbers). Thanks! ...

OpenCL examples with benchmarks

I'm looking for some introductory examples to OpenCL which illustrate the types of applications that can experience large (e.g., 50x-1000x) increases in speed. Cuda has lots of nice examples, but I haven't found the same thing for OpenCL. A nice example might be global optimization of complex functions via particle swarms, simulated an...

calculate array index from pointers

Me and some peers are working on a game (Rigs ofRods) and are trying to integrate OpenCL for physics calculation. At the same time we are trying to do some much needed cleanup of our data structures. I guess I should say we are trying to cleanup our data structures and be mindful of OpenCL requirements. One of the problems with using op...

Getting starting with Parallel programming.

Hi guys, So it looks like multicore and all its associated complications are here to stay. I am planning a software project that will definitely benefit from parallelism. The problem is that I have very little experience writing concurrent software. I studied it at University and understand the concepts and theory very well but have zer...

OpenCL compiler preprocessing definitions?

I am developing OpenCL code on Snow Leopard and understand that the OpenCL just-in-time compilation is done by Clang/LLVM. Is the C preprocessor used at all? Is there a way to set preprocessing definitions with the compiler? What definitions exist? I would like the code to be aware of whether it is compiled for CPU or GPU so I for insta...

Using __constant qualifer in OpenCL kernels

I am having trouble using the *__constant* qualifier in my OpenCL kernels. My platform is Snow Leopard. I have tried initializing a CL read-only memory object on the GPU, copying my constant array from host into it. Then I set the kernel argument just as with *__global* memory arguments, but this does not work as it should but I see no...

Nvidia GPU Computing SDK and Xcode 3.1

I'm trying to compile some code for OpenCL (and the NV Computing SDK) in Xcode. I (think) I've set the search paths correctly, but when I try to compile the source code from the example (oclDeviceQuery, which builds perfectly using sudo make) I get the following error: /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/OpenCL.fram...

How to get the linker in gcc to recognize OpenCL library functions?

I'm getting my feet wet with OpenCL. I'm sure this problem is not specific to OpenCL, however. the top of my main file looks like: #include <stdio.h> #include <stdlib.h> #include <math.h> #include <OpenCL/opencl.h> // some code cl_device_id device_id; //declaring a device id gives no errors int err = clGetDeviceIDs(NULL, CL_DEVICE_T...

Death of the Cell processor

Hi, in the last times I heard lots of people claiming that the Cell processor is dead, mainly due to the following reasons: a) lack of support in the new playstation 3, as the user can not install linux b) the increasing processing power of the GPU's and its costs sinking c) the existence of a unified programming approach (openCL) for ...