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

Add timers to measure CPU time #2979

Open
yardasol opened this issue Apr 25, 2024 · 0 comments
Open

Add timers to measure CPU time #2979

yardasol opened this issue Apr 25, 2024 · 0 comments
Assignees

Comments

@yardasol
Copy link
Contributor

yardasol commented Apr 25, 2024

Description

Currently, OpenMC only reports wall-clock times. For users wishing to obtain CPU times for scaling studies and other purposes, they must rely on an external timer. It would be nice if OpenMC had this capability internally.

For wall-clock times, it looks like OpenMC uses the <chrono> library. It looks like for getting cputime, we'll want to use the clock() function in the <ctime> library. We will also need to perform some kind of MPI_Reduce to collect cputimes across all MPI ranks.

Alternatives

N/A

Compatibility

There should be no change to the existing API other than a new dataset in statepoint file.

@yardasol yardasol changed the title Add timers to measure cputime Add timers to measure CPU time Apr 25, 2024
@yardasol yardasol self-assigned this Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant