MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / getSampleCount

Function getSampleCount

cpp/0_Introduction/mergeSort/mergeSort_host.cpp:53–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51static uint umin(uint a, uint b) { return (a <= b) ? a : b; }
52
53static uint getSampleCount(uint dividend)
54{
55 return ((dividend % SAMPLE_STRIDE) != 0) ? (dividend / SAMPLE_STRIDE + 1) : (dividend / SAMPLE_STRIDE);
56}
57
58static uint nextPowerOfTwo(uint x)
59{

Callers 4

generateSampleRanksFunction · 0.85
mergeRanksAndIndicesFunction · 0.85
mergeElementaryIntervalsFunction · 0.85
mergeSortHostFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected