不知是VS2010还是Nsight的一个漏洞
2011-04-17 14:57
211 查看
A Bug of VS2010/Nsight
Having known that disabling L1 cache by "-Xptxas -dlcm=cg" option at compile time can reduce over-fetch (for example, in the case of scattered memory accesses), I did an experiment today to see whether it will make my programme faster.However, I was annoyed by the fact that there's no place to add such an option in VS2010. Although I tried to add it in Project Properties -> Configuration Properties -> CUDA C/C++ -> Command Line -> Additional Options, the linker complained about not knowing the "-Xptxas -dlcm=cg" option and failed. This should be a bug of VS2010 or Nsight, since the Additional Options of the Command Line of NVCC shouldn't have anything to do with the linker command line.
At last, I have to compile the .cu file in cmd, compile .cpp files separately in VS2010, and link the executable using the Link Only feature in VS2010 (located in Build Menu -> Project Only). Oh yes, luckily VS2010 has the Link Only command, otherwise I'll have to link the executable in cmd as well.
相关文章推荐
- 27个砝码中,只有一个与其他26个砝码重量不同且不知该砝码是轻还是重,问最少需要称多少次能找到该砝码
- 一个简单关于学生成绩管理的C++程序代码,但是对于拷贝析构函数目前还是不知其作用何在
- 若是在做销售源码生意的,还是用 VS2008 省事一些,今天有一个客户没 VS2010 只好再把程序倒退回来
- windows XP server 5.1.2462.2的一个免注册方法,不知是不是微软的漏洞.
- 若是在做销售源码生意的,还是用 VS2008 省事一些,今天有一个客户没 VS2010 只好再把程序倒退回来
- 编号为1-12的球,其中一个不知是轻还是重,称三次,找出是哪个球的解法
- 不知是香港的还是台湾的一个rtprtcp项目
- 若是在做销售源码生意的,还是用 VS2008 省事一些,今天有一个客户没 VS2010 只好再把程序倒退回来
- 用C++写个程序,如何判断一个操作系统是16位还是32位的?不能用sizeof()
- 对request.getSession(false)的理解(附程序员常疏忽的一个漏洞)
- .NET还是JAVA,一个中国程序员的评论 (转)
- try {}里有一个return语句,那么紧跟在这个try后的finally {}里的code会不会被执行,什么时候被执行,在return前还是后?
- Word 2007翻译里一个诡异的问题——微软的疏忽还是一个Joke?
- 还是继续支持标准开发,再送一个页面加入FLASH的通用函数
- VS2010打开项目提示未能正确加载解决方案中一个或多个项目
- prototype本质上还是一个JavaScript对象。 并且每个函数都有一个默认的prototype属性。
- 你是一个压力型程序员?还是?
- 电脑小结:怎样一个软件是32位还是64位
- 非常赞的文章!告诉你一个你知其然却不知其所以然的硅谷
- 安卓开发,一个Activity启动了一个本地服务,然后把Activity切换到后台,那这是后台进程还是次要服务进程