Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
13 Views

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?

0 Kudos
1 Reply
Highlighted
Employee
13 Views

Hi! Current Intel SDK OpenCL implementation supports 1.2 version. OpenCL 2.0 implementation has not been released yet. Thanks, Yuri
0 Kudos