Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallelize Cell Reading For Throughput Measurements, main branch (2024.11.09.) #767

Merged

Conversation

krasznaa
Copy link
Member

@krasznaa krasznaa commented Nov 9, 2024

This is something that I had in the back of my mind ever since running the throughput tests for @beomki-yeo's CHEP 2024 results. But until now I thought that I should do this in traccc::io, by reviving the same style of function that we had back in the day with OpenMP.

But I had to realize that the throughput application itself, where this is actually relevant, already has everything available to parallelize its own file reading. 🤔 So I just used the simplest API of TBB, tbb::parallel_for. 😉

On my home PC it for instance brings down the reading of 500 mu=140 ODD events from almost 4 minutes to ~10 seconds. (Yepp, Threadripper still FTW. 😛)

@krasznaa krasznaa added performance Performance-relevant changes examples Changes to the examples labels Nov 9, 2024
@krasznaa
Copy link
Member Author

krasznaa commented Nov 9, 2024

😕 I could not disagree more with SonarCloud on this one.

image

Why should it be obvious to the reader that event_range.begin() would be of type std::size_t in this setup? 😕

Copy link
Contributor

@beomki-yeo beomki-yeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good. I also suspected that the number of read events is the main factor for computing time instead of the number of processed events

@krasznaa krasznaa force-pushed the ParallelizeCellReading-main-20241109 branch from 43b21d1 to c2d8255 Compare November 11, 2024 09:36
Copy link

@krasznaa krasznaa enabled auto-merge November 11, 2024 10:08
@krasznaa krasznaa merged commit 8827300 into acts-project:main Nov 11, 2024
26 checks passed
@krasznaa krasznaa deleted the ParallelizeCellReading-main-20241109 branch November 11, 2024 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples Changes to the examples performance Performance-relevant changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants