Hi,
When I write an API code in CUDA GPU, for example, calculate contact force with calculateForce(). I noticed that I need to define the main function for both CPU cpp and GPU cu files. Do both of the main functions calculate contact force or only GPU code is calculating? Besides, what shall I do if I want only my CPU code to run for a certain timestep and GPU code keep sleeping for that timestep?
Kindly regards,
Qi