OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1668 Discussions

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

yi_l_
Beginner
191 Views

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
Yuri_K_Intel
Employee
191 Views
Hi! Current Intel SDK OpenCL implementation supports 1.2 version. OpenCL 2.0 implementation has not been released yet. Thanks, Yuri
Reply