how to catkin_make cuda code
Hi, everyone.
I'd like to know how to write CMakesLists.txt for cuda code.
Are there any good references for it ??
Code is as the following, very simple.
// hello.cu
#include <cuda.h>
#include <cuda_runtime.h>
__global__ kernel()
{
}
int main(int argc, char** argv)
{
ros::init(argc, argv, "hello");
ros::NodeHandle nh;
kernel<<<1, 1>>>()
ROS_INFO_STREAM("Hello, world.");
return 0;
}
Thanks in advance.