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
4f1c6068
Commit
4f1c6068
authored
7 years ago
by
Thierry
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'private/libkomp' into libkomp
parents
6a4a42fb
d2ac3e47
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
runtime/src/kaapi_ompt.c
+3
-3
3 additions, 3 deletions
runtime/src/kaapi_ompt.c
runtime/src/kaapi_trace_rt.c
+2
-1
2 additions, 1 deletion
runtime/src/kaapi_trace_rt.c
runtime/src/katracereader.cpp
+11
-3
11 additions, 3 deletions
runtime/src/katracereader.cpp
with
16 additions
and
7 deletions
runtime/src/kaapi_ompt.c
+
3
−
3
View file @
4f1c6068
...
...
@@ -434,7 +434,7 @@ on_ompt_event_loop_begin(
void
*
workshare_function
,
int
schedule
,
int64_t
lb
,
int64_t
ub
,
int64_t
stride
,
uint64_t
chunk
,
uint64_t
count
)
{
#if
1//
LOG
#if LOG
printf
(
"%"
PRIu64
": ompt_event_loop_begin: parallel_id=%"
PRIu64
", parent_task_id=%"
PRIu64
", workshare_id=%"
PRIu64
", loc: %s, workshare_function=%p, schedule: %i"
" [%"
PRIi64
":%"
PRIi64
":%"
PRIi64
"], chunk:%"
PRIu64
", count:%"
PRIu64
"
\n
"
,
...
...
@@ -460,7 +460,7 @@ on_ompt_event_loop_dispatch(
int64_t
lb
,
int64_t
ub
,
int64_t
stride
)
{
#if
1//
LOG
#if LOG
printf
(
"%"
PRIu64
": ompt_event_loop_dispatch: parallel_id=%"
PRIu64
", parent_task_id=%"
PRIu64
", workshare_id=%"
PRIu64
", [%"
PRIi64
":%"
PRIi64
":%"
PRIi64
"]
\n
"
,
thread_id
-
1
,
parallel_id
,
task_id
,
workshare_id
,
lb
,
stride
,
ub
);
...
...
@@ -480,7 +480,7 @@ on_ompt_event_loop_end(
ompt_workshare_id_t
workshare_id
)
{
#if
1//
LOG
#if LOG
printf
(
"%"
PRIu64
": ompt_event_loop_end: parallel_id=%"
PRIu64
", task_id=%"
PRIu64
", workshare_id=%"
PRIu64
"
\n
"
,
thread_id
-
1
,
parallel_id
,
task_id
,
workshare_id
);
#endif
...
...
This diff is collapsed.
Click to expand it.
runtime/src/kaapi_trace_rt.c
+
2
−
1
View file @
4f1c6068
...
...
@@ -106,7 +106,8 @@ const char* kaapi_event_name[]
/*50 */
"ThreadStealOp"
,
/*51 */
"ThreadState"
,
/*52 */
"Energy"
,
/*53 */
"Watt"
/*53 */
"Watt"
,
/*54 */
"LoopMData"
};
...
...
This diff is collapsed.
Click to expand it.
runtime/src/katracereader.cpp
+
11
−
3
View file @
4f1c6068
...
...
@@ -1336,7 +1336,7 @@ struct kproc_t : public state_t {
/* Keep track of the thread state event */
struct
loopinfo_t
:
public
event_t
{
enum
{
BEGIN
,
END
,
DISPATCH
};
enum
{
BEGIN
,
DISPATCH
,
END
};
loopinfo_t
(
int
k
)
:
event_t
(),
type
(
k
),
wid
(
0
),
count
(
0
),
ub
(
0
),
lb
(
0
),
stride
(
0
)
{}
...
...
@@ -1975,8 +1975,10 @@ printf("pred[id:%i/%p] = {id:%i}/%p\n", succ->id, (void*)succ->addr, task->id, (
li
.
start
=
event
->
date
;
li
.
kid
=
kid
;
li
.
wid
=
KAAPI_EVENT_DATA
(
event
,
0
,
u
);
rpr
->
loopevts
.
push_back
(
li
);
loopstate_t
&
ls
=
rpr
->
loopstack
[
kid
].
back
();
if
(
li
.
wid
==
(
uint64_t
)
-
1
)
li
.
wid
=
ls
.
wid
;
rpr
->
loopevts
.
push_back
(
li
);
ls
.
stop
=
event
->
date
;
ls
.
kid
=
kid
;
ls
.
wid
=
li
.
wid
;
...
...
@@ -2582,7 +2584,7 @@ int csv_parallel_region_t::closefile(int cpucount)
}
/* header */
fprintf
(
csv_parallel_region_t
::
fout_loops
,
"Resource, Stamp, Wid, EvtType, UB, LB, Stride"
"Resource, Stamp, Wid, EvtType, UB, LB, Stride
\n
"
);
for
(
size_t
i
=
0
;
i
<
loopevts
.
size
();
++
i
)
{
...
...
@@ -2725,6 +2727,12 @@ static void fnc_csv( int count, const char** filenames )
fprintf
(
stdout
,
"*** File 'complexity.csv' generated
\n
"
);
csv_parallel_region_t
::
fout_complexity
=
0
;
}
if
(
csv_parallel_region_t
::
fout_loops
)
{
fclose
(
csv_parallel_region_t
::
fout_loops
);
fprintf
(
stdout
,
"*** File 'loops.csv' generated
\n
"
);
csv_parallel_region_t
::
fout_loops
=
0
;
}
rastello_fmtname
.
clear
();
...
...
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