[英]Effect of visual studio compiler settings on performance of CUDA kernels
I get about 3-4x times difference in computation time of a same CUDA kernel compiled on two different machines. 在两台不同的计算机上编译的相同CUDA内核的计算时间差约为3-4倍。 Both versions run on a same machine and GPU device.
两种版本都在同一台机器和GPU设备上运行。 The direct conclusion explaining the difference is different compiler settings.
解释差异的直接结论是不同的编译器设置。 Although there is no single perfect setting and the tuning should be customized depending on the kernel, I wonder if there is any clear guideline for helping to choose the right settings.
尽管没有一个完美的设置,应该根据内核自定义调整,但我想知道是否有任何明确的指南可帮助您选择正确的设置。 I use Visual Studio 2010. Thank you.
我使用Visual Studio2010。谢谢。
-G
switch passed to the nvcc compiler will usually have a negative effect on GPU code performance. -G
开关通常会对GPU代码性能产生负面影响。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.