Previous | Next --- Slide 28 of 63
Back to Lecture Thumbnails
gogogo

how should parallel_cutoff be chosen to optimize efficiency?

BBB

I believe the optimal cutoff would be the point when the cost of computing serially is less than the overhead cost of spawning an additional thread. You could probably run some simple diagnostics to determine this point. For example, time the creation of a new thread to find the overhead cost. Then time the serial execution of N units of work, increasing N until the serial execution time matches the overhead cost of a new thread. This N will be your parallel cutoff.