Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
cc4s
Cyclops Tensor Framework
Commits
d7045341
Commit
d7045341
authored
11 years ago
by
Edgar Solomonik
Browse files
Options
Download
Email Patches
Plain Diff
minor corrections to new perf model
parent
54cf652e
master
dryrun
feature/cray
v1.35
v1.34
v1.33
v1.32
v1.31
v1.30
v1.23
v1.22
v1.21
v1.20
v1.5.5
v1.5.4
v1.5.3
v1.5.2
v1.5.1
v1.5.0
v1.4.2
v1.4.1
v1.4.0
v1.3.5
v1.3.4
v1.3.3
v1.3.2
v1.3.1
v1.3.0
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.1.1
v1.1.0
v1.1
Fix-v1.1.1-sabretooth
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/ctr_comm/seq_tsr.cxx
src/ctr_comm/seq_tsr.cxx
+2
-2
src/shared/comm.h
src/shared/comm.h
+2
-2
No files found.
src/ctr_comm/seq_tsr.cxx
View file @
d7045341
...
...
@@ -245,8 +245,8 @@ double seq_tsr_ctr<dtype>::est_time_fp(int nlyr){
}
for
(
int
i
=
0
;
i
<
idx_max
;
i
++
){
if
(
rev_idx_map
[
3
*
i
+
0
]
!=
-
1
)
flops
*=
edge_len_A
[
rev_idx_map
[
3
*
i
+
0
]];
else
if
(
rev_idx_map
[
3
*
i
+
1
]
!=
-
1
)
flops
*=
edge_len_
A
[
rev_idx_map
[
3
*
i
+
1
]];
else
if
(
rev_idx_map
[
3
*
i
+
2
]
!=
-
1
)
flops
*=
edge_len_
A
[
rev_idx_map
[
3
*
i
+
2
]];
else
if
(
rev_idx_map
[
3
*
i
+
1
]
!=
-
1
)
flops
*=
edge_len_
B
[
rev_idx_map
[
3
*
i
+
1
]];
else
if
(
rev_idx_map
[
3
*
i
+
2
]
!=
-
1
)
flops
*=
edge_len_
C
[
rev_idx_map
[
3
*
i
+
2
]];
}
CTF_free
(
rev_idx_map
);
return
COST_MEMBW
*
(
size_A
+
size_B
+
size_C
)
+
COST_FLOP
*
flops
;
...
...
This diff is collapsed.
Click to expand it.
src/shared/comm.h
View file @
d7045341
...
...
@@ -37,7 +37,7 @@ typedef class CommData {
double
estimate_bcast_time
(
long_int
msg_sz
)
{
#ifdef BGQ
return
msg_sz
*
COST_NETWBW
+
COST_LATENCY
;
return
msg_sz
*
(
double
)
COST_NETWBW
+
COST_LATENCY
;
#else
return
msg_sz
*
(
double
)
log2
(
np
)
*
COST_NETWBW
;
#endif
...
...
@@ -45,7 +45,7 @@ typedef class CommData {
double
estimate_allred_time
(
long_int
msg_sz
)
{
#ifdef BGQ
return
msg_sz
*
(
2.
*
COST_MEMBW
+
COST_NETWBW
)
+
COST_LATENCY
;
return
msg_sz
*
(
double
)(
2.
*
COST_MEMBW
+
COST_NETWBW
)
+
COST_LATENCY
;
#else
return
msg_sz
*
(
double
)
log2
(
np
)
*
(
2.
*
COST_MEMBW
+
COST_FLOP
+
COST_NETWBW
);
#endif
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment