How can I improve performance via a high-level approach when implementing long equations in C++

后端 未结 10 1975
孤街浪徒
孤街浪徒 2021-01-30 19:34

I am developing some engineering simulations. This involves implementing some long equations such as this equation to calculate stress in a rubber like material:



        
10条回答
  •  半阙折子戏
    2021-01-30 20:00

    If you have a Nvidia CUDA graphics card, you could consider offloading the calculations to the graphics card - which itself is more suitable for computationally complicated calculations.

    https://developer.nvidia.com/how-to-cuda-c-cpp

    If not, you may want to consider multiple threads for calculations.

提交回复
热议问题