用Makefile构建cuda和boost库
Building cuda and boost library with Makefile
我有一个makefile
:
projectx: component1.obj
nvcc -O3 -arch=sm_20 -lcuda -o projectx component2.obj
component1.obj : component1.cu component1.h
nvcc -O3 -arch=sm_20 -c component1.cu
component2.obj : component2.cu cm.h component2.h
nvcc -O3 -arch=sm_20 -c component2.cu
component1.cu
包含#include <boost/lambda/lambda.hpp>
当我试图用nmake
构建它时,它告诉我"无法打开包含文件:'boost/lambda/lambda.hpp'"
我该怎么做?如何告诉nvcc
从哪里获取这个包含文件?
使用-I
标志。例:-I/opt/cuda-toolkit/include
将boost
'include'文件放入C:Program Files (x86)Microsoft Visual Studio 10.0VCinclude
相关文章:
- 理解boost::asio-async_read在无需读取内容时的行为
- boost::进程间消息队列引发错误
- 如何运行位于boost/libs/python/example/tutorial目录中的hello.cpp和Jamfil
- 编译时未启用intel oneApi CUDA支持
- cmake如何在fedora工作站中找到boost静态库包
- CMake项目Boost库错误:Boost/config/compiler/gcc.hpp:165:10:致命错误:cs
- 在cuda线程之间共享大量常量数据
- Boost Graph Library,修复节点大小
- 什么是"#include <boost/functional/hash.hpp> "?
- 基于boost的程序的静态链接——zlib问题
- 为什么即使使用-cudart-static进行编译,库用户仍然需要链接到cuda运行时
- C++:如何在CLion IDE中安装Boost
- C++Boost Asio Pool线程,带有lambda函数和传递引用变量
- 如何在boost beast http请求中设置http头
- Boost Spirit,获取迭代器内部语义动作
- 与CUDA/OpenMP兼容的`boost::numeric::odeint::runge_kutta-X`模板参数
- 在cuda设备代码中使用类似boost的库
- 为什么nvcc无法编译boost::spirit的CUDA文件?
- Cuda with Boost
- 用Makefile构建cuda和boost库