Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libkomp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
openmp
libkomp
Commits
dfab090a
Commit
dfab090a
authored
7 years ago
by
Thierry
Browse files
Options
Downloads
Patches
Plain Diff
[fix] initialisation bug in hws queue
parent
2e887f79
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
runtime/src/kmp_tasking.cpp
+9
-8
9 additions, 8 deletions
runtime/src/kmp_tasking.cpp
with
9 additions
and
8 deletions
runtime/src/kmp_tasking.cpp
+
9
−
8
View file @
dfab090a
...
...
@@ -373,7 +373,7 @@ __kmp_push_task(kmp_int32 gtid, kmp_task_t * task )
selected_queue
=
&
task_team
->
tt
.
tt_task_queues_mem
[
KMP_LEVEL_MACHINE
][
0
].
qd
;
else
#endif
if
(
kaapi_wsqueue_empty
(
&
task_team
->
tt
.
tt_task_private_queues
[
KMP_LEVEL_THREAD
][
tid
].
qd
->
td_wsdeque
))
if
(
kaapi_wsqueue_empty
(
&
task_team
->
tt
.
tt_task_private_queues
[
KMP_LEVEL_THREAD
][
tid
].
qd
.
td_wsdeque
))
selected_queue
=
&
task_team
->
tt
.
tt_task_private_queues
[
KMP_LEVEL_THREAD
][
tid
].
qd
;
else
selected_queue
=
&
task_team
->
tt
.
tt_task_queues
[
KMP_LEVEL_THREAD
][
tid
].
qd
;
...
...
@@ -548,7 +548,7 @@ __kmp_push_task(kmp_int32 gtid, kmp_task_t * task )
);
else
#if LIBOMP_USE_AFFINITY
if
(
select_queue
==
&
task_team
->
tt
.
tt_task_private_queues
[
KMP_LEVEL_THREAD
][
tid
].
qd
)
if
(
select
ed
_queue
==
&
task_team
->
tt
.
tt_task_private_queues
[
KMP_LEVEL_THREAD
][
tid
].
qd
)
err
=
kaapi_wsqueue_push_task
(
pqueue
,
isremote
,
...
...
@@ -2703,7 +2703,7 @@ __kmp_remove_my_task( kmp_info_t * thread, kmp_int32 cpu, kmp_int32 node, kmp_in
{
#if LIBOMP_USE_AFFINITY
kmp_int32
tid
=
thread
->
th
.
th_info
.
ds
.
ds_tid
;
if
(
selected_struct_queue
==
&
task_team
->
tt
.
tt_task_private_queues
[
KMP_LEVEL_THREAD
][
tid
]
.
qd
)
if
(
selected_struct_queue
==
&
task_team
->
tt
.
tt_task_private_queues
[
KMP_LEVEL_THREAD
][
tid
])
taskdata
=
__kaapi_wsqueue_pop_task
(
&
(
selected_struct_queue
->
qd
.
td_wsdeque
)
);
else
#endif
...
...
@@ -3618,6 +3618,8 @@ static int __kmp_realloc_task_threads_data(kmp_info_t *thread,
task_team
->
tt
.
tt_task_queues
[
KMP_LEVEL_THREAD
]
=
(
kmp_queue_data_t
*
)
__kmp_allocate
(
nthreads
*
sizeof
(
kmp_queue_data_t
));
#if LIBOMP_USE_AFFINITY
task_team
->
tt
.
tt_task_private_queues
[
KMP_LEVEL_THREAD
]
=
(
kmp_queue_data_t
*
)
__kmp_allocate
(
nthreads
*
sizeof
(
kmp_queue_data_t
));
if
(
task_team
->
tt
.
tt_task_queues
[
KMP_LEVEL_CORE
])
__kmp_free
(
task_team
->
tt
.
tt_task_queues
[
KMP_LEVEL_CORE
]
);
task_team
->
tt
.
tt_task_queues
[
KMP_LEVEL_CORE
]
=
...
...
@@ -3639,11 +3641,10 @@ static int __kmp_realloc_task_threads_data(kmp_info_t *thread,
#endif
);
#if LIBOMP_USE_AFFINITY
__kmp_init_task_deque
(
&
task_team
->
tt
.
tt_private_
task_
queues
[
KMP_LEVEL_THREAD
][
i
],
__kmp_init_task_deque
(
&
task_team
->
tt
.
tt_
task_
private_queues
[
KMP_LEVEL_THREAD
][
i
],
KMP_LEVEL_THREAD
,
i
,
__kmp_cpu2node
(
i
)
0
);
#endif
}
...
...
@@ -3711,10 +3712,10 @@ static int __kmp_realloc_task_threads_data(kmp_info_t *thread,
i
=
0
;
KMP_CPU_SET_ITERATE
(
phy_index
,
task_team
->
tt
.
tt_nodes_mask
)
{
__kmp_init_task_deque
(
&
task_team
->
tt
.
tt_task_queues
[
KMP_LEVEL_NUMA
][
i
],
KMP_LEVEL_NUMA
,
i
,
phy_index
);
__kmp_init_task_deque
(
&
task_team
->
tt
.
tt_task_private_queues
[
KMP_LEVEL_NUMA
][
i
],
KMP_LEVEL_NUMA
,
i
,
phy_index
);
__kmp_init_task_deque
(
&
task_team
->
tt
.
tt_task_queues
[
KMP_LEVEL_NUMA
][
phy_index
],
KMP_LEVEL_NUMA
,
phy_index
,
phy_index
);
__kmp_init_task_deque
(
&
task_team
->
tt
.
tt_task_private_queues
[
KMP_LEVEL_NUMA
][
phy_index
],
KMP_LEVEL_NUMA
,
phy_index
,
phy_index
);
KA_TRACE
(
5
,
(
"__kmp_enable_tasking: phy index: %i, array index: %i
\n
"
,
phy_index
,
i
)
);
printf
(
"[TASK_TEAM]: NUMA %i, array index: %i
\n
"
,
phy_index
,
i
);
printf
(
"[TASK_TEAM]: NUMA
%i/
%i, array index: %i
\n
"
,
phy_index
,
setsize
,
i
);
i
++
;
}
}
...
...
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
register
or
sign in
to comment