禁止“无法动态确定堆栈大小”。警告? [英] Suppress "stack size cannot be dynamically determined" warnings?
本文介绍了禁止“无法动态确定堆栈大小”。警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我收到CUDA警告
ptxas warning : Stack size for entry function '_Z13a_test_kernelv' cannot be
statically determined.
现在,我知道它的意思了,并且有一个有关其发生原因的问题。我想抑制的警告(使用nvcc 10.x编译时)。我可以吗?如果是这样,我该在何处放置警告抑制 #pragma
?
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?
推荐答案
在使用nvcc进行编译时,添加 -Xptxas -suppress-stack-size-warning
。
Add -Xptxas -suppress-stack-size-warning
when compiling with nvcc.
这篇关于禁止“无法动态确定堆栈大小”。警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文