A question of Enqueuing Kernels in Open CL2.0 Specification 6.13.17

A question of Enqueuing Kernels in Open CL2.0 Specification 6.13.17

In the  Open CL2.0 Specification  6.13.17, it refered as:

void (^my_block_A)(void) =
^{ size_t id = get_global_id(0);
b[id] += a[id];
Last Revision Date: 11/15/13 Page 163
};
// enqueue the block variable
enqueue_kernel(get_default_queue(),
CLK_ENQUEUE_FLAGS_WAIT_KERNEL,
ndrange,
my_block_A);
// or we could have done the following
enqueue_kernel(get_default_queue(),
CLK_ENQUEUE_FLAGS_WAIT_KERNEL,
ndrange,
^{ size_t id = get_global_id(0);
b[id] += a[id];
};
}

but when I use it in the kernel program, it shows the error"use of undeclared identifier 'ndrange_t'", What it lacks?What should I do?

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi!

Current Intel SDK OpenCL implementation supports 1.2 version. OpenCL 2.0 implementation has not been released yet.

Thanks,
Yuri

Leave a Comment

Please sign in to add a comment. Not a member? Join today