mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-11-18 01:48:16 +08:00
CUDA 13.4 samples update - v13.4-public
Release 13.4 of the CUDA Samples supported by CUDA Toolkit 13.4. See Changelog for more information.
This commit is contained in:
@@ -215,6 +215,9 @@ int runTest(int argc, char **argv)
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// Device solution
|
||||
|
||||
// Enlarge the per-thread device stack: under -G the CUB warpspeed inclusive_scan is not inlined and its deep call chain overflows the default 1KB stack.
|
||||
checkCudaErrors(cudaDeviceSetLimit(cudaLimitStackSize, 8192));
|
||||
|
||||
// Execution configuration
|
||||
dim3 block(256);
|
||||
dim3 grid((uint)ceil(ray.length / (double)block.x));
|
||||
|
||||
Reference in New Issue
Block a user