kernel software development choice Is it better a huge kernel or different small kernels?

Hello to All,

I have a doubt about kernel development.
I am trying to develop a cloth simulation environment.
This task can be divided into different sequential phases:

  • forces evaluation
  • collision detection
  • numerical integration
  • 3d visualziation

Is it better to develop only one kernel or to develop different
little kernels?

From a resource occupancy point of view the second solution should be better…am I wrong?

Thanks in advance

Francesco

This really depends on your problem. A large kernel might require too many registers, small kernels will need more bandwidth. Try both and check which is faster.