Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Chameleon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
AGULLO Emmanuel
Chameleon
Commits
043acd95
Commit
043acd95
authored
Dec 20, 2014
by
PRUVOST Florent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid some mpi communications in LANGE normInf
parent
c14430d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
4 deletions
+23
-4
compute/pzlange.c
compute/pzlange.c
+23
-4
No files found.
compute/pzlange.c
View file @
043acd95
...
@@ -213,8 +213,17 @@ void morse_pzlange(MORSE_enum norm, MORSE_desc_t *A, double *result,
...
@@ -213,8 +213,17 @@ void morse_pzlange(MORSE_enum norm, MORSE_desc_t *A, double *result,
0
.,
0
.,
0
.,
0
.,
VECNORMS_STEP2
(
m
,
0
),
1
);
VECNORMS_STEP2
(
m
,
0
),
1
);
/* compute vector sums between tiles in rows */
/* compute vector sums between tiles in rows locally on each rank */
for
(
n
=
0
;
n
<
A
->
nt
;
n
++
)
{
for
(
n
=
A
->
myrank
%
A
->
q
+
A
->
q
;
n
<
A
->
nt
;
n
+=
A
->
q
)
{
MORSE_TASK_dgeadd
(
&
options
,
tempkm
,
1
,
1
.
0
,
VECNORMS_STEP1
(
m
,
n
),
tempkm
,
VECNORMS_STEP1
(
m
,
A
->
myrank
%
A
->
q
),
tempkm
);
}
/* compute vector sums between tiles in rows between ranks */
for
(
n
=
0
;
n
<
A
->
q
;
n
++
)
{
MORSE_TASK_dgeadd
(
MORSE_TASK_dgeadd
(
&
options
,
&
options
,
tempkm
,
1
,
1
.
0
,
tempkm
,
1
,
1
.
0
,
...
@@ -240,9 +249,19 @@ void morse_pzlange(MORSE_enum norm, MORSE_desc_t *A, double *result,
...
@@ -240,9 +249,19 @@ void morse_pzlange(MORSE_enum norm, MORSE_desc_t *A, double *result,
0
.,
0
.,
0
.,
0
.,
RESULT
(
0
,
0
),
1
);
RESULT
(
0
,
0
),
1
);
/* compute max norm between tiles in the column */
/* compute max norm between tiles in the column
locally on each rank
*/
if
(
A
->
myrank
%
A
->
q
==
0
)
{
if
(
A
->
myrank
%
A
->
q
==
0
)
{
for
(
m
=
0
;
m
<
A
->
mt
;
m
++
)
{
for
(
m
=
(
A
->
myrank
/
A
->
q
);
m
<
A
->
mt
;
m
+=
A
->
p
)
{
MORSE_TASK_dlange_max
(
&
options
,
VECNORMS_STEP1
(
m
,
0
),
RESULT
(
0
,
0
));
}
}
/* compute max norm between tiles in the column between ranks */
if
(
A
->
myrank
%
A
->
q
==
0
)
{
for
(
m
=
0
;
m
<
A
->
p
;
m
++
)
{
MORSE_TASK_dlange_max
(
MORSE_TASK_dlange_max
(
&
options
,
&
options
,
VECNORMS_STEP1
(
m
,
0
),
VECNORMS_STEP1
(
m
,
0
),
...
...
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