The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

sajis997 (1) [Avatar] Offline
Hello forum,

On page 19, it is mentioned that if we set the num_entries variable to 0 , we shall get error with the function


But i am not getting any error. I am playing around with some of the opencl toys found here

And smallptgpu specifically setting the num_entries to 0

Any idea?

PetrSchreiber (2) [Avatar] Offline
Re: more explanation - page 19

you actually can pass num_entries parameter equal to zero, but only when platforms parameter is null. This is how it is used in smallptGPU.

You can read about it in the official specs: