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

Fix #22, add_barrier before time + fix IO and compute time order #23

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jmorice91
Copy link
Collaborator

add kokkos::fence() to have better understanding of times

@jmorice91
Copy link
Collaborator Author

jmorice91 commented Feb 13, 2025

Perhaps, we need to change also the output to show that we have found the bug?
suggestion: [RESULT] by [TIME RESULT] or something else.

os << "[RESULT] Compute: " << obj.time_spent_in_io.count() << " s" << std::endl;

os << "[RESULT] I/O: " << obj.time_spent_in_io.count() << " s" << std::endl;
os << "[RESULT] Compute: " << obj.time_spent_in_compute.count() << " s" << std::endl;
Copy link
Member

Choose a reason for hiding this comment

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

I suggest that we also output the wall time of the whole execution. Thus, we can see the difference between wall_time and io_time + compute_time, which gives us the time for initialization, etc.

Copy link
Collaborator Author

@jmorice91 jmorice91 Feb 17, 2025

Choose a reason for hiding this comment

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

The Wall time correspond to the time spent in the solver (method EngineNd::run() without the time in the first pdiExposeData).
It doen't take into account the time of initialization of kokkos for example.

Here, Wall time \simeq I/O + Compute

@Yushan-Wang
Copy link
Member

Perhaps, we need to change also the output to show that we have found the bug? suggestion: [RESULT] by [TIME RESULT] or something else.

Yes

@jmorice91 jmorice91 requested a review from jbigot February 18, 2025 08:54
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.

Add barrier with Kokkos' fence to check the timers of the bench
2 participants