cuda报错: nvcc fatal : Host compiler targets unsupported OS
nvcc fatal : Host compiler targets unsupported OS
实际上表示的可能是编译器过新 ;
cuda库不能认识出编译器;
我当时使用vs2019 vs2017去编译opencv430 + opnecv-contrib430 出现这样的问题;
实际上,利用vs2019 vs2017 编译opnecv以及contrib 411 都没有问题;
于是更换430源码,利用vs2015x64进行编译,果然,一切OK 。 这是由于opnecv的源码中含有一些只能用vs2015进行编译的部分,导致整体都必须要用2015.
特别是opencv-cudadev.lib 的编译,opencv-core.lib的编译;
_________________________________________________________________________________________________________________________________________________
每一个不曾起舞的日子,都是对生命的辜负。
But it is the same with man as with the tree. The more he seeks to rise into the height and light, the more vigorously do his roots struggle earthward, downward, into the dark, the deep - into evil.
其实人跟树是一样的,越是向往高处的阳光,它的根就越要伸向黑暗的地底。----尼采
每一个不曾起舞的日子,都是对生命的辜负。
But it is the same with man as with the tree. The more he seeks to rise into the height and light, the more vigorously do his roots struggle earthward, downward, into the dark, the deep - into evil.
其实人跟树是一样的,越是向往高处的阳光,它的根就越要伸向黑暗的地底。----尼采

浙公网安备 33010602011771号