VS+Eigen+CUDA compile error: C2244 and MSB3721
生活随笔
收集整理的这篇文章主要介绍了
VS+Eigen+CUDA compile error: C2244 and MSB3721
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
编译环境Eigen3+CUDA9.2+VS2015
错误如下:
解决方式:
将Eigen中的JacobiSVD and BDCSVD里的Index用Eigen::Index替换
http://eigen.tuxfamily.org/dox-devel/TopicCUDA.html
http://eigen.tuxfamily.org/bz/show_bug.cgi?id=1412
如果还是不行,试试在VS中修改View -> Property Pages; Configuration Properties -> CUDA C/C++ -> Common -> Generate Relocatable Device Code -> Yes (-rdc=true)
总结
以上是生活随笔为你收集整理的VS+Eigen+CUDA compile error: C2244 and MSB3721的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: the different betwee
- 下一篇: C++中关于[]静态数组和new分配的动