Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
1c60afe5
Commit
1c60afe5
authored
Dec 19, 2020
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Add the 'resort' and 'sync' as their own task categories for the analysis
parent
cdaadf5d
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/task.c
+12
-5
12 additions, 5 deletions
src/task.c
src/task.h
+2
-0
2 additions, 0 deletions
src/task.h
tools/analyse_runtime.py
+3
-0
3 additions, 0 deletions
tools/analyse_runtime.py
with
17 additions
and
5 deletions
src/task.c
+
12
−
5
View file @
1c60afe5
...
...
@@ -149,9 +149,12 @@ const char *subtaskID_names[task_subtype_count] = {
};
const
char
*
task_category_names
[
task_category_count
]
=
{
"drift"
,
"sort"
,
"hydro"
,
"gravity"
,
"feedback"
,
"black holes"
,
"cooling"
,
"star formation"
,
"limiter"
,
"time integration"
,
"mpi"
,
"fof"
,
"others"
,
"sink"
};
"drift"
,
"sort"
,
"resort"
,
"hydro"
,
"gravity"
,
"feedback"
,
"black holes"
,
"cooling"
,
"star formation"
,
"limiter"
,
"sync"
,
"time integration"
,
"mpi"
,
"fof"
,
"others"
,
"sink"
};
#ifdef WITH_MPI
/* MPI communicators for the subtypes. */
...
...
@@ -1439,9 +1442,11 @@ enum task_categories task_get_category(const struct task *t) {
case
task_type_sort
:
case
task_type_stars_sort
:
case
task_type_stars_resort
:
return
task_category_sort
;
case
task_type_stars_resort
:
return
task_category_resort
;
case
task_type_send
:
case
task_type_recv
:
return
task_category_mpi
;
...
...
@@ -1452,9 +1457,11 @@ enum task_categories task_get_category(const struct task *t) {
return
task_category_time_integration
;
case
task_type_timestep_limiter
:
case
task_type_timestep_sync
:
return
task_category_limiter
;
case
task_type_timestep_sync
:
return
task_category_sync
;
case
task_type_ghost
:
case
task_type_extra_ghost
:
case
task_type_end_hydro_force
:
...
...
...
...
This diff is collapsed.
Click to expand it.
src/task.h
+
2
−
0
View file @
1c60afe5
...
...
@@ -166,6 +166,7 @@ enum task_actions {
enum
task_categories
{
task_category_drift
,
task_category_sort
,
task_category_resort
,
task_category_hydro
,
task_category_gravity
,
task_category_feedback
,
...
...
@@ -173,6 +174,7 @@ enum task_categories {
task_category_cooling
,
task_category_star_formation
,
task_category_limiter
,
task_category_sync
,
task_category_time_integration
,
task_category_mpi
,
task_category_fof
,
...
...
...
...
This diff is collapsed.
Click to expand it.
tools/analyse_runtime.py
+
3
−
0
View file @
1c60afe5
...
...
@@ -145,6 +145,7 @@ tasks = [
"
dead time
"
,
"
drift
"
,
"
sort
"
,
"
resort
"
,
"
hydro
"
,
"
gravity
"
,
"
feedback
"
,
...
...
@@ -152,10 +153,12 @@ tasks = [
"
cooling
"
,
"
star formation
"
,
"
limiter
"
,
"
sync
"
,
"
time integration
"
,
"
mpi
"
,
"
fof
"
,
"
others
"
,
"
sink
"
,
"
total
"
,
]
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment