I’m relatively new to CUDA and I have a question about current best practices for performing calculations. In particular about how to make good decisions between simplifying problems with more variables or performing more complex calculations with fewer variables.
Each thread is asked to compute one result.
float ua = ((x2-x1) * (ky1-y2) - (y2-y1) * (kx1-x2)) / ((y2-y1) * (kx2-kx1) - (x2-x1) * (ky2-ky1));
The question is:
To what degree do people believe a calculation should be broken down into simpler chunks?