Skip to content

Conversation

@reunanen
Copy link
Contributor

Problem: on Blackwell GPUs, functions such as cudnnFindConvolutionBackwardDataAlgorithm may run out of stack space on Windows (leading to a stack overflow error)

Solution: increase the stack size from the default 1 MB to 16 MB (yea, 8 MB wasn't enough, at least on my machine...)

NB: apparently these cudnnFind* functions are increasingly considered "legacy", and one should perhaps use the heuristic cudnnGet* functions instead

…ckwardDataAlgorithm` may run out of stack space on Windows (leading to a stack overflow error)

Solution: increase the stack size from the default 1 MB to 16 MB (yea, 8 MB wasn't enough, at least on my machine...)
@reunanen reunanen changed the title For the Visual C++ example DNN builds, crank up stack size from default 1 MB to 16 MB in order to avoid a stack overflow errors (0xC00000FD) For the Visual C++ example DNN builds, crank up stack size from default 1 MB to 16 MB in order to avoid stack overflow errors (0xC00000FD) Dec 29, 2025
@davisking davisking merged commit 2a878a6 into davisking:master Jan 1, 2026
9 checks passed
@davisking
Copy link
Owner

Thanks for the PR :D

@reunanen reunanen deleted the crank-up-stack-size-in-Visual-Studio-builds branch January 1, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants