Forum Discussion
Altera_Forum
Honored Contributor
8 years agocan single work items kernels run in parallel on same device
Can single work item kernels run in parallel on the same device (i.e. on the same board). I've been trying to get a very simple example of task parallelism working but have not been able to ...
Altera_Forum
Honored Contributor
8 years agoTry putting "start_time = getCurrentTimestamp();" before the kernel invocation loop. I have a feeling your kernel run time is so short that total time is being dominated by the clCreateBuffer() call. Note that on most hardware, using host pointer will result in the OpenCL runtime actually allocating and transferring the whole buffer to device memory. Also considering increasing your input size so that your total run time is at least a few seconds.