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
f1499635
Commit
f1499635
authored
Jun 14, 2017
by
Mathieu Faverge
Committed by
BOUCHERIE Raphael
Jun 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Indentation
parent
6baa7569
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
24 deletions
+23
-24
compute/pzgelqfrh.c
compute/pzgelqfrh.c
+23
-24
No files found.
compute/pzgelqfrh.c
View file @
f1499635
/**
*
* @copyright (c) 2009-2014 The University of Tennessee and The University
* of Tennessee Research Foundation.
* All rights reserved.
* @copyright (c) 2012-2016 Inria. All rights reserved.
* @copyright (c) 2012-2014 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, Univ. Bordeaux. All rights reserved.
* @copyright (c) 2009-2014 The University of Tennessee and The University of
* Tennessee Research Foundation. All rights reserved.
* @copyright (c) 2012-2016 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
* Univ. Bordeaux. All rights reserved.
*
**/
...
...
@@ -29,8 +28,6 @@
* @precisions normal z -> s d c
*
**/
//ALLOC_WS : A->nb + ib*T->nb
//WS_ADD : A->nb + ib*T->nb
#include "control/common.h"
#define A(m,n) A, (m), (n)
...
...
@@ -42,9 +39,9 @@
#define DIAG(m,n) A, (m), (n)
#endif
/*
**************************************************************************//**
/*
* Parallel tile LQ factorization (reduction Householder) - dynamic scheduling
*
*
/
*/
void
morse_pzgelqfrh
(
MORSE_desc_t
*
A
,
MORSE_desc_t
*
T
,
int
BS
,
MORSE_sequence_t
*
sequence
,
MORSE_request_t
*
request
)
{
...
...
@@ -55,7 +52,7 @@ void morse_pzgelqfrh(MORSE_desc_t *A, MORSE_desc_t *T, int BS,
MORSE_desc_t
*
DIAG
=
NULL
;
int
k
,
m
,
n
;
int
N
,
RD
;
int
K
,
N
,
RD
;
int
ldak
,
ldam
;
int
tempkmin
,
tempkm
,
tempNn
,
tempnn
,
tempmm
,
tempNRDn
;
int
ib
;
...
...
@@ -101,7 +98,10 @@ void morse_pzgelqfrh(MORSE_desc_t *A, MORSE_desc_t *T, int BS,
}
#endif
for
(
k
=
0
;
k
<
chameleon_min
(
A
->
mt
,
A
->
nt
);
k
++
)
{
K
=
chameleon_min
(
A
->
mt
,
A
->
nt
);
/* The number of the factorization */
for
(
k
=
0
;
k
<
K
;
k
++
)
{
RUNTIME_iteration_push
(
morse
,
k
);
tempkm
=
k
==
A
->
mt
-
1
?
A
->
m
-
k
*
A
->
mb
:
A
->
mb
;
...
...
@@ -114,22 +114,22 @@ void morse_pzgelqfrh(MORSE_desc_t *A, MORSE_desc_t *T, int BS,
tempkm
,
tempNn
,
ib
,
T
->
nb
,
A
(
k
,
N
),
ldak
,
T
(
k
,
N
),
T
->
mb
);
if
(
k
<
(
A
->
mt
-
1
)
)
{
if
(
k
<
(
A
->
mt
-
1
)
)
{
#if defined(CHAMELEON_COPY_DIAG)
MORSE_TASK_zlacpy
(
&
options
,
MorseUpper
,
tempkm
,
tempNn
,
A
->
nb
,
A
(
k
,
N
),
ldak
,
DIAG
(
k
,
N
),
ldak
);
MORSE_TASK_zlacpy
(
&
options
,
MorseUpper
,
tempkm
,
tempNn
,
A
->
nb
,
A
(
k
,
N
),
ldak
,
DIAG
(
k
,
N
),
ldak
);
#if defined(CHAMELEON_USE_CUDA)
MORSE_TASK_zlaset
(
&
options
,
MorseLower
,
tempkm
,
tempNn
,
0
.,
1
.,
DIAG
(
k
,
N
),
ldak
);
MORSE_TASK_zlaset
(
&
options
,
MorseLower
,
tempkm
,
tempNn
,
0
.,
1
.,
DIAG
(
k
,
N
),
ldak
);
#endif
#endif
}
}
for
(
m
=
k
+
1
;
m
<
A
->
mt
;
m
++
)
{
tempmm
=
m
==
A
->
mt
-
1
?
A
->
m
-
m
*
A
->
mb
:
A
->
mb
;
ldam
=
BLKLDD
(
A
,
m
);
...
...
@@ -188,7 +188,6 @@ void morse_pzgelqfrh(MORSE_desc_t *A, MORSE_desc_t *T, int BS,
}
}
}
RUNTIME_iteration_pop
(
morse
);
}
RUNTIME_options_ws_free
(
&
options
);
...
...
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