构建使用boost的.cu文件

问题描述 投票:0回答:1

我运行了以下命令:

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的实际解决方法是什么?

c++ boost cuda nvcc noncopyable
1个回答
0
投票

对于主机代码用法:

© www.soinside.com 2019 - 2024. All rights reserved.