Suppress “stack size cannot be dynamically determined” warnings?

半世苍凉 提交于 2020-01-25 10:21:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!