Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Chameleon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
Chameleon
Commits
f1499635
Commit
f1499635
authored
7 years ago
by
Mathieu Faverge
Committed by
BOUCHERIE Raphael
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Indentation
parent
6baa7569
No related branches found
No related tags found
1 merge request
!47
Integration of hierarchicah householder reduction trees
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compute/pzgelqfrh.c
+23
-24
23 additions, 24 deletions
compute/pzgelqfrh.c
with
23 additions
and
24 deletions
compute/pzgelqfrh.c
+
23
−
24
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
);
...
...
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