I have some calculation task on a large amount of the data - so it can be quite easily to parallel. Next question is how many threads does it make sense to create. Of course I can measure time for different number of thread on my machine, but what if a program will be run on different machines, so I can't really make manual measurement. Is just get number of threads from std::thread::hardware_concurrency()
good enough, or there are some other ways?
dimanche 6 décembre 2020
Finding out how many threads make sense to create
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire