mcave
mcave

Reputation: 121

Parallelization of EXP

Do you think it would be possible to calculate the exponential function using more than one thread? I have a code where the bottle neck is the calculation of long double expl( long double ). All the rest is already pretty much parallelized. I try several approximations but nothing worked so far.

Thank you in advance for your help.

Upvotes: 2

Views: 129

Answers (1)

David Heffernan
David Heffernan

Reputation: 612993

The calculation of expl() may well be your bottleneck, but a single evaluation of expl() is still going to consume a very small number of clock cycles. The overhead of performing thread synchronisation will outweigh any possible gain from parallel execution.

Upvotes: 3

Related Questions