Gamaru / opencl-book-samples

Automatically exported from code.google.com/p/opencl-book-samples
0 stars 0 forks source link

simple.cl kernel missing the type #52

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Index: src/Chapter_7/SimpleBufferSubBuffer/simple.cl
===================================================================
--- src/Chapter_7/SimpleBufferSubBuffer/simple.cl       (revision 42)
+++ src/Chapter_7/SimpleBufferSubBuffer/simple.cl       (working copy)
@@ -12,8 +12,8 @@
 //
 //    This is a simple example demonstrating buffers and sub-buffer usage

-__kernel void square(__global * buffer)
+__kernel void square(__global int* buffer)
 {
        size_t id = get_global_id(0);
        buffer[id] = buffer[id] * buffer[id];

Original issue reported on code.google.com by pekka.ja...@gmail.com on 19 Jan 2012 at 3:33