CUDA function on driveworks sample


Have any one tried add cuda function based on driveworks sample code?

global void demo_thread_idx()
cout<<“Grid Dimemsion:”<<gridDim.x<<endl;
cout<<“Block Dimemsion:”<<blockDim.x<<endl;
cout<<“Block ID:”<<blockIdx.x<<endl;
cout<<“Threas ID:”<<threadIdx.x<<endl;

void run_GPU()
int blocksPerGrid = 1;
int threadsPerBlock = 10;
demo_thread_idx<<< blocksPerGrid,threadsPerBlock >>>();

My question is “How to do cross compiler with driveworks sample?”

Dear yurui,
You can check /usr/local/driveworks-0.6/samples/src/image/image_streamer_multi sample to know how to use a CUDA kernel in Driveworks. Please check /usr/local/driveworks-0.6/doc/nvdwx_html/dwx_samples_building.html to know cross compiling a DW sample for Drive PX2.


Thanks for your reply.
I solved it!