简体   繁体   English

NSight:命令行参数中的文件重定向

[英]NSight: file redirection in command line arguments

I can't manage to pass command line argument to my program when I launch it with "start CUDA debugging" in visual studio. 在Visual Studio中使用“启动CUDA调试”启动程序时,我无法将命令行参数传递给程序。 (it works well with the visual studio debugger though). (尽管它与Visual Studio调试器很好地兼容)。 I tried setting my argument in visual studio parameters and in the Nsight parameter as explained in " CUDA: Passing parameters to host compiler during Nsight session " but they get ignored. 我曾尝试在Visual Studio参数和Nsight参数中设置参数,如“ CUDA:在Nsight会话期间将参数传递给主机编译器 ”中所述,但它们被忽略了。

My argument is a file representing my data. 我的论点是代表我的数据的文件。 I set the parameter as : 我将参数设置为:

< "..\\testData"

I'm using Visual Studio 2012 with Nsight 3.1.0 我正在将Visual Studio 2012与Nsight 3.1.0一起使用

Thanks for your time ! 谢谢你的时间 ! Mickaël 米克尔

I'm sorry to say that so far Nsight doesn't support parameter using "< file". 很抱歉,到目前为止,Nsight不支持使用“ <文件”的参数。 It could not resolve file's content. 它无法解析文件的内容。 But I have filed an enhancement request for developers. 但是我已经向开发人员提出了增强请求。 Hope we could support it in later versions. 希望我们可以在以后的版本中支持它。 Sorry. 抱歉。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM