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 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione

Hi!

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

Thanks,
Yuri

Lascia un commento

Eseguire l'accesso per aggiungere un commento. Non siete membri? Iscriviti oggi