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
a63eef02
Commit
a63eef02
authored
9 years ago
by
Edgar Solomonik
Browse files
Options
Download
Email Patches
Plain Diff
lda of topo dimensions must be inversly ordered for some reason...
parent
2774613f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
src/mapping/topology.cxx
src/mapping/topology.cxx
+5
-1
src/shared/util.h
src/shared/util.h
+1
-1
src/tensor/untyped_tensor.cxx
src/tensor/untyped_tensor.cxx
+2
-2
No files found.
src/mapping/topology.cxx
View file @
a63eef02
...
...
@@ -52,7 +52,11 @@ namespace CTF_int {
dim_comm
=
(
CommData
*
)
CTF_int
::
alloc
(
order_
*
sizeof
(
CommData
));
is_activated
=
false
;
memcpy
(
lens
,
lens_
,
order_
*
sizeof
(
int
));
// memcpy(lens, lens_, order_*sizeof(int));
//reverse FIXME: this is assumed somewhere...
for
(
int
i
=
0
;
i
<
order
;
i
++
){
lens
[
i
]
=
lens_
[
order
-
i
-
1
];
}
int
stride
=
1
,
cut
=
0
;
int
rank
=
glb_comm
.
rank
;
...
...
This diff is collapsed.
Click to expand it.
src/shared/util.h
View file @
a63eef02
...
...
@@ -27,7 +27,7 @@ namespace CTF_int {
/* Force redistributions always by setting to 1 */
#define REDIST 0
//#define VERIFY 0
#define VERIFY_REMAP
0
#define VERIFY_REMAP
1
#define FOLD_TSR 1
#define PERFORM_DESYM 1
#define ALLOW_NVIRT 1024
...
...
This diff is collapsed.
Click to expand it.
src/tensor/untyped_tensor.cxx
View file @
a63eef02
...
...
@@ -915,7 +915,7 @@ namespace CTF_int {
}
if
(
idx
[
i
]
==
prl
.
idx
[
j
]){
map
->
type
=
PHYSICAL_MAP
;
map
->
np
=
prl
.
part
.
lens
[
j
]
;
map
->
np
=
top
.
dim_comm
[
j
].
np
;
map
->
cdt
=
j
;
}
}
...
...
@@ -928,7 +928,7 @@ namespace CTF_int {
}
if
(
idx
[
i
]
==
blk
.
idx
[
j
]){
map
->
type
=
VIRTUAL_MAP
;
map
->
np
=
blk
.
part
.
lens
[
j
]
;
map
->
np
=
top
.
dim_comm
[
j
].
np
;
}
}
}
...
...
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