How to use Rosbuild project with Cuda in Nsight

asked 2016-11-11 01:58:24 -0500

nistar gravatar image

I use Ubuntu 14, and install ros and cuda.
I look IDE of ros, and build a project of eclipse.
And now, I add a .cu file to the rosbuild project.
But I don't know how to change the CmakeList.
I try to this , but can't build in Nsight.
Then I try INCLUDE_DIRECTORIES(/usr/local/cuda/include)
But have error 'Unresolved inclusion: <cuda.h>' at "#include <cuda.h>", and can't use never function of cuda, like'cudaMalloc'

edit retag flag offensive close merge delete