SciML / SciMLBook

Parallel Computing and Scientific Machine Learning (SciML): Methods and Applications (MIT 18.337J/6.338J)

Home Page:https://book.sciml.ai/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chapter 5 has a lot of code with no obvious point

alanedelman opened this issue · comments

Everything from We can make this faster by preallocating the cache vector
to before And let's get the mean of the trajectory for each of the parameters.
hardly speeds anything up so one doesn't pick up the point of anything.
I feel my time was wasted looking at all these codes.

Also all the parallel speed ups that follow are also unimpressive -- downright discouraging.
Chapter 5 has a few good points

  • threads having their own stack
  • parallel codes can be slow downs
  • parallel codes are best on big problems

but otherwise the examples are just horrible sadly.