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 threaded-timer support to hpc-benchmark #14

Closed
wants to merge 6 commits into from

Conversation

JanVogelsang
Copy link
Contributor

Merge this as soon as nest/nest-simulator#3378 is merged into NEST

Copy link
Collaborator

@mlober mlober left a comment

Choose a reason for hiding this comment

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

Thanks for this PR!

hpc_benchmark/hpc_benchmark.py Outdated Show resolved Hide resolved
hpc_benchmark/hpc_benchmark.py Outdated Show resolved Hide resolved
d[timer] -= intermediate_kernel_status[timer]
if type(d[timer]) == tuple or type(d[timer]) == list:
timer_array = tuple(d[timer][tid] - intermediate_kernel_status[timer][tid] for tid in range(len(d[timer])))
d[timer] = timer_array[0]
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is the reason for adding only the first value of the tuple to the logfile? And why is this handled differently for the presim timers?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just adding the first value would be equivalent to just measuring on the master thread, i.e., makes the data comparable with pre-threaded-timer data. This is just required for now, as beNNch only handles scalar data at the moment.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I see thanks. But why is this handled differently for sim time and presim time?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was just an oversight from my side, I added the same code for presim as well now!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants