Add .cl as a Common Lisp file extension.

This commit is contained in:
Lars Brinkhoff
2013-09-09 09:27:00 +02:00
parent 2bac3af299
commit c6c5e79ccf
3 changed files with 45 additions and 0 deletions

23
samples/OpenCL/sample.cl Normal file
View File

@@ -0,0 +1,23 @@
/* Old-style comment. */
// New-style comment.
typedef float foo_t;
#ifndef ZERO
#define ZERO (0.0)
#endif
#define FOO(x) ((x) + \
ZERO)
__kernel
void foo(__global const foo_t * x, __local foo_t y, const uint n)
{
barrier(CLK_LOCAL_MEM_FENCE);
if (n > 42) {
*x += y;
}
}