[英]Building cuda and boost library with Makefile
I have a 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
contains #include <boost/lambda/lambda.hpp>
and when I'm trying to build it with nmake
it tells me "Cannot open include file: 'boost/lambda/lambda.hpp'" component1.cu
包含#include <boost/lambda/lambda.hpp>
,当我尝试使用nmake
构建它时,它告诉我“无法打开包含文件:'boost / lambda / lambda.hpp'”
What should I do here? 我该怎么办? How to tell
nvcc
where to take this include files from? 如何告诉
nvcc
该包含文件从何处获取?
Use the -I
flag. 使用
-I
标志。 Eg -I/opt/cuda-toolkit/include
例如
-I/opt/cuda-toolkit/include
通过将boost
'文件放在C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\include\\
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.