NVIDIA / cuda-samples

Samples for CUDA Developers which demonstrates features in CUDA Toolkit
Other
6.2k stars 1.78k forks source link

Question on batchSize #302

Open gong-yuan opened 2 days ago

gong-yuan commented 2 days ago

I saw that batchSize appear in multiple places in the repo, e.g.

uint blockCount = batchSize * arrayLength / SHARED_SIZE_LIMIT;

in bitonicSort.cu.

Would it be possible to explain what does it mean? Given an array of arrayLength, why would we want to do it batchSize times?

Thank you so much for your consideration.

Best regards, Yuan