From 611008fa86ecec5e6b54f30a416b9850f7eb0571 Mon Sep 17 00:00:00 2001 From: Peggy Tian Date: Wed, 7 May 2025 17:38:52 +0800 Subject: [PATCH] Bug 5236593: Increase the pending kernel launch limit to 4096 --- .../cdpAdvancedQuicksort/cdpAdvancedQuicksort.cu | 3 +++ 1 file changed, 3 insertions(+) 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);