问题
I'm getting a CUDA warning saying
ptxas warning : Stack size for entry function '_Z13a_test_kernelv' cannot be
statically determined.
Now, I know what it means, and there's a SO question about why it happens. What I want to suppress the warning (when compiling with nvcc 10.x). Can I? If so, where exactly do I put the warning suppression #pragma
for this?
回答1:
Add -Xptxas -suppress-stack-size-warning
when compiling with nvcc.
来源:https://stackoverflow.com/questions/59328507/suppress-stack-size-cannot-be-dynamically-determined-warnings