Hi,
Have any one tried add cuda function based on driveworks sample code?
Like:
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?”