bug04 compute_35 architecture or above

记录一个程序运行时发现的 bug
在这里插入图片描述
在 stackoverflow 上查阅后得到解决方案如下:

  1. View -> Property Pages

  2. Comfiguration Properties -> CUDA C/C++ -> Common -> Generate Relocatable Device Code -> Yes (-rdc=true)

  3. Configuration Properties -> CUDA C/C++ -> Device -> Code Generation -> compute_35,sm_35

  4. Configuration Properties -> Linker -> Input -> Additional Dependencies -> cudadevrt.lib

运行后仍然有问题。

打开 Code Generation 页面,发现继承的值中版本低于所要求的35,自己设置的结果应该是被继承值覆盖掉了,因此取消此选项即可正常使用。
在这里插入图片描述

发布了17 篇原创文章 · 获赞 7 · 访问量 945

猜你喜欢

转载自blog.csdn.net/qq_29639589/article/details/104777759