Hi,

I am quite a noob to OpenCL, and am trying to grasp some ideas of it with guide book examples.
And I am currently using Ubuntu 12.04 with Intel / NVIDIA C2075,
of which both OpenCL SDKs are installed.

I know that there are two ways of compiling kernels (on/offline)
But I couldn't figure out how I can compile my kernel and get binary file before compiling the whole thing.

The book says there's a software named [Intel OpenCL offline Compiler] but what about Ubuntu??

My kernel code is very simple :

Code :
__kernel void vecAdd(__global float * a)
{
	int gid = get_global_id(0);
 
	a[gid] += a[gid];
 
}

Writing
Code :
gcc -I/usr/local/cuda-5.0/include -o kernel.clbin kernel.cl -lOpenCL
didn't work that much. I got
Code :
/usr/bin/ld:kernel.cl: file format not recognized; treating as linker script
/usr/bin/ld:kernel.cl:1: syntax error
collect2: ld returned 1 exit status



I appreciate your reply!