diff --git a/Samples/3_CUDA_Features/cdpAdvancedQuicksort/cdpAdvancedQuicksort.cu b/Samples/3_CUDA_Features/cdpAdvancedQuicksort/cdpAdvancedQuicksort.cu index bb5ac5a5..e18cca90 100644 --- a/Samples/3_CUDA_Features/cdpAdvancedQuicksort/cdpAdvancedQuicksort.cu +++ b/Samples/3_CUDA_Features/cdpAdvancedQuicksort/cdpAdvancedQuicksort.cu @@ -575,6 +575,9 @@ int main(int argc, char *argv[]) printf("Running qsort on %d elements with seed %d, on %s\n", size, seed, properties.name); + // Increase the pending kernel launch limit + cudaDeviceSetLimit(cudaLimitDevRuntimePendingLaunchCount, 4096); + run_qsort(size, seed, debug, loop, verbose); exit(EXIT_SUCCESS);