VS+Eigen+CUDA compile error: C2244 and MSB3721
生活随笔
收集整理的這篇文章主要介紹了
VS+Eigen+CUDA compile error: C2244 and MSB3721
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
編譯環(huán)境Eigen3+CUDA9.2+VS2015
錯(cuò)誤如下:
解決方式:
將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)
總結(jié)
以上是生活随笔為你收集整理的VS+Eigen+CUDA compile error: C2244 and MSB3721的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: the different betwee
- 下一篇: C++中关于[]静态数组和new分配的动