我运行了以下命令:
nvcc -arch=sm_70 foo.cu -o predatorPrey -I $BOOST_ROOT -L $BOOST_LIBRARY_PATH -lboost_timer
并收到以下编译错误:
boost/include/boost/core/noncopyable.hpp(42): error: defaulted default constructor cannot be constexpr because the corresponding implicitly declared default constructor would not be constexpr
Google搜索使我here。
在this guy使用解决方法之前,所有希望似乎都消失了。不过,作为初级程序员,我不明白
的意思。通过g ++ 11打开从源代码构建增强功能解决了问题
这是否意味着从头开始重建?与默认情况下构建boost有何不同?
那么,在同一项目中同时使用CUDA和CUDA的实际解决方法是什么?
对于主机代码用法: