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
006c3b3f
Commit
006c3b3f
authored
7 years ago
by
MIJIEUX Thomas
Browse files
Options
Downloads
Patches
Plain Diff
Use tempab notation for dimension variable
parent
1a7a2139
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!48
Fix #30. Incorrect descriptor initialization for Lapack matrix.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compute/pztile.c
+59
-62
59 additions, 62 deletions
compute/pztile.c
with
59 additions
and
62 deletions
compute/pztile.c
+
59
−
62
View file @
006c3b3f
...
@@ -26,138 +26,135 @@
...
@@ -26,138 +26,135 @@
**/
**/
#include
"control/common.h"
#include
"control/common.h"
#define A(m, n)
d
A, m, n
#define A(m, n) A, m, n
#define B(m, n) &
d
B, m, n
#define B(m, n) &B, m, n
/*******************************************************************************
/*******************************************************************************
* Conversion from LAPACK F77 matrix layout to tile layout - dynamic scheduling
* Conversion from LAPACK F77 matrix layout to tile layout - dynamic scheduling
**/
**/
void
morse_pzlapack_to_tile
(
MORSE_Complex64_t
*
Af77
,
int
lda
,
MORSE_desc_t
*
d
A
,
void
morse_pzlapack_to_tile
(
MORSE_Complex64_t
*
Af77
,
int
lda
f77
,
MORSE_desc_t
*
A
,
MORSE_sequence_t
*
sequence
,
MORSE_request_t
*
request
)
MORSE_sequence_t
*
sequence
,
MORSE_request_t
*
request
)
{
{
MORSE_context_t
*
morse
;
MORSE_context_t
*
morse
;
MORSE_option_t
options
;
MORSE_option_t
options
;
MORSE_desc_t
dB
;
MORSE_desc_t
B
;
int
X
,
Y
;
int
m
,
n
;
int
n
,
m
,
ldt
;
int
ldam
;
int
tempmm
,
tempnn
;
morse
=
morse_context_self
();
morse
=
morse_context_self
();
if
(
sequence
->
status
!=
MORSE_SUCCESS
)
if
(
sequence
->
status
!=
MORSE_SUCCESS
)
return
;
return
;
RUNTIME_options_init
(
&
options
,
morse
,
sequence
,
request
);
RUNTIME_options_init
(
&
options
,
morse
,
sequence
,
request
);
d
B
=
morse_desc_init
(
B
=
morse_desc_init
(
MorseComplexDouble
,
d
A
->
mb
,
d
A
->
nb
,
d
A
->
bsiz
,
MorseComplexDouble
,
A
->
mb
,
A
->
nb
,
A
->
bsiz
,
lda
,
d
A
->
n
,
0
,
0
,
d
A
->
m
,
d
A
->
n
,
1
,
1
);
lda
f77
,
A
->
n
,
0
,
0
,
A
->
m
,
A
->
n
,
1
,
1
);
d
B
.
get_blkaddr
=
morse_getaddr_cm
;
B
.
get_blkaddr
=
morse_getaddr_cm
;
d
B
.
get_blkldd
=
morse_getblkldd_cm
;
B
.
get_blkldd
=
morse_getblkldd_cm
;
d
B
.
mat
=
Af77
;
B
.
mat
=
Af77
;
d
B
.
styp
=
MorseCM
;
B
.
styp
=
MorseCM
;
RUNTIME_desc_create
(
&
d
B
);
RUNTIME_desc_create
(
&
B
);
for
(
m
=
0
;
m
<
dA
->
mt
;
m
++
)
for
(
m
=
0
;
m
<
A
->
mt
;
m
++
)
{
{
tempmm
=
m
==
A
->
mt
-
1
?
A
->
m
-
m
*
A
->
mb
:
A
->
mb
;
Y
=
m
==
dA
->
mt
-
1
?
dA
->
m
-
m
*
dA
->
mb
:
dA
->
mb
;
ldam
=
BLKLDD
(
A
,
m
);
ldt
=
BLKLDD
(
dA
,
m
);
for
(
n
=
0
;
n
<
A
->
nt
;
n
++
)
{
for
(
n
=
0
;
n
<
dA
->
nt
;
n
++
)
tempnn
=
n
==
A
->
nt
-
1
?
A
->
n
-
n
*
A
->
nb
:
A
->
nb
;
{
X
=
n
==
dA
->
nt
-
1
?
dA
->
n
-
n
*
dA
->
nb
:
dA
->
nb
;
MORSE_TASK_zlacpy
(
MORSE_TASK_zlacpy
(
&
options
,
&
options
,
MorseUpperLower
,
MorseUpperLower
,
Y
,
X
,
d
A
->
mb
,
tempmm
,
tempnn
,
A
->
mb
,
B
(
m
,
n
),
lda
,
B
(
m
,
n
),
lda
f77
,
A
(
m
,
n
),
ld
t
);
A
(
m
,
n
),
ld
am
);
}
}
}
}
RUNTIME_sequence_wait
(
morse
,
sequence
);
RUNTIME_sequence_wait
(
morse
,
sequence
);
RUNTIME_options_finalize
(
&
options
,
morse
);
RUNTIME_options_finalize
(
&
options
,
morse
);
MORSE_TASK_dataflush_all
();
MORSE_TASK_dataflush_all
();
RUNTIME_desc_getoncpu
(
&
d
B
);
RUNTIME_desc_getoncpu
(
&
B
);
RUNTIME_desc_destroy
(
&
d
B
);
RUNTIME_desc_destroy
(
&
B
);
}
}
/*******************************************************************************
/*******************************************************************************
* Conversion from LAPACK F77 matrix layout to tile layout - dynamic scheduling
* Conversion from LAPACK F77 matrix layout to tile layout - dynamic scheduling
**/
**/
void
morse_pztile_to_lapack
(
MORSE_desc_t
*
d
A
,
MORSE_Complex64_t
*
Af77
,
int
lda
,
void
morse_pztile_to_lapack
(
MORSE_desc_t
*
A
,
MORSE_Complex64_t
*
Af77
,
int
lda
f77
,
MORSE_sequence_t
*
sequence
,
MORSE_request_t
*
request
)
MORSE_sequence_t
*
sequence
,
MORSE_request_t
*
request
)
{
{
MORSE_context_t
*
morse
;
MORSE_context_t
*
morse
;
MORSE_option_t
options
;
MORSE_option_t
options
;
MORSE_desc_t
dB
;
MORSE_desc_t
B
;
int
X
,
Y
;
int
m
,
n
;
int
n
,
m
,
ldt
;
int
ldam
;
int
tempmm
,
tempnn
;
morse
=
morse_context_self
();
morse
=
morse_context_self
();
if
(
sequence
->
status
!=
MORSE_SUCCESS
)
if
(
sequence
->
status
!=
MORSE_SUCCESS
)
return
;
return
;
RUNTIME_options_init
(
&
options
,
morse
,
sequence
,
request
);
RUNTIME_options_init
(
&
options
,
morse
,
sequence
,
request
);
d
B
=
morse_desc_init
(
B
=
morse_desc_init
(
MorseComplexDouble
,
d
A
->
mb
,
d
A
->
nb
,
d
A
->
bsiz
,
MorseComplexDouble
,
A
->
mb
,
A
->
nb
,
A
->
bsiz
,
lda
,
d
A
->
n
,
0
,
0
,
d
A
->
m
,
d
A
->
n
,
1
,
1
);
lda
f77
,
A
->
n
,
0
,
0
,
A
->
m
,
A
->
n
,
1
,
1
);
d
B
.
get_blkaddr
=
morse_getaddr_cm
;
B
.
get_blkaddr
=
morse_getaddr_cm
;
d
B
.
get_blkldd
=
morse_getblkldd_cm
;
B
.
get_blkldd
=
morse_getblkldd_cm
;
d
B
.
mat
=
Af77
;
B
.
mat
=
Af77
;
d
B
.
styp
=
MorseCM
;
B
.
styp
=
MorseCM
;
RUNTIME_desc_create
(
&
d
B
);
RUNTIME_desc_create
(
&
B
);
for
(
m
=
0
;
m
<
dA
->
mt
;
m
++
)
for
(
m
=
0
;
m
<
A
->
mt
;
m
++
)
{
{
tempmm
=
m
==
A
->
mt
-
1
?
A
->
m
-
m
*
A
->
mb
:
A
->
mb
;
Y
=
m
==
dA
->
mt
-
1
?
dA
->
m
-
m
*
dA
->
mb
:
dA
->
mb
;
ldam
=
BLKLDD
(
A
,
m
);
ldt
=
BLKLDD
(
dA
,
m
);
for
(
n
=
0
;
n
<
A
->
nt
;
n
++
)
{
for
(
n
=
0
;
n
<
dA
->
nt
;
n
++
)
tempnn
=
n
==
A
->
nt
-
1
?
A
->
n
-
n
*
A
->
nb
:
A
->
nb
;
{
X
=
n
==
dA
->
nt
-
1
?
dA
->
n
-
n
*
dA
->
nb
:
dA
->
nb
;
MORSE_TASK_zlacpy
(
MORSE_TASK_zlacpy
(
&
options
,
&
options
,
MorseUpperLower
,
MorseUpperLower
,
Y
,
X
,
d
A
->
mb
,
tempmm
,
tempnn
,
A
->
mb
,
A
(
m
,
n
),
ld
t
,
A
(
m
,
n
),
ld
am
,
B
(
m
,
n
),
lda
);
B
(
m
,
n
),
lda
f77
);
}
}
}
}
RUNTIME_sequence_wait
(
morse
,
sequence
);
RUNTIME_sequence_wait
(
morse
,
sequence
);
RUNTIME_options_finalize
(
&
options
,
morse
);
RUNTIME_options_finalize
(
&
options
,
morse
);
MORSE_TASK_dataflush_all
();
MORSE_TASK_dataflush_all
();
RUNTIME_desc_getoncpu
(
&
d
B
);
RUNTIME_desc_getoncpu
(
&
B
);
RUNTIME_desc_destroy
(
&
d
B
);
RUNTIME_desc_destroy
(
&
B
);
}
}
/*******************************************************************************
/*******************************************************************************
* Zeroes a submatrix in tile layout - dynamic scheduling
* Zeroes a submatrix in tile layout - dynamic scheduling
**/
**/
void
morse_pztile_zero
(
MORSE_desc_t
*
d
A
,
MORSE_sequence_t
*
sequence
,
MORSE_request_t
*
request
)
void
morse_pztile_zero
(
MORSE_desc_t
*
A
,
MORSE_sequence_t
*
sequence
,
MORSE_request_t
*
request
)
{
{
MORSE_context_t
*
morse
;
MORSE_context_t
*
morse
;
MORSE_option_t
options
;
MORSE_option_t
options
;
int
X
,
Y
;
int
m
,
n
;
int
n
,
m
,
ldt
;
int
ldam
;
int
tempmm
,
tempnn
;
morse
=
morse_context_self
();
morse
=
morse_context_self
();
if
(
sequence
->
status
!=
MORSE_SUCCESS
)
if
(
sequence
->
status
!=
MORSE_SUCCESS
)
return
;
return
;
RUNTIME_options_init
(
&
options
,
morse
,
sequence
,
request
);
RUNTIME_options_init
(
&
options
,
morse
,
sequence
,
request
);
for
(
m
=
0
;
m
<
dA
->
mt
;
m
++
)
for
(
m
=
0
;
m
<
A
->
mt
;
m
++
)
{
{
tempmm
=
m
==
A
->
mt
-
1
?
A
->
m
-
m
*
A
->
mb
:
A
->
mb
;
Y
=
m
==
dA
->
mt
-
1
?
dA
->
m
-
m
*
dA
->
mb
:
dA
->
mb
;
ldam
=
BLKLDD
(
A
,
m
);
ldt
=
BLKLDD
(
dA
,
m
);
for
(
n
=
0
;
n
<
A
->
nt
;
n
++
)
{
for
(
n
=
0
;
n
<
dA
->
nt
;
n
++
)
tempnn
=
n
==
A
->
nt
-
1
?
A
->
n
-
n
*
A
->
nb
:
A
->
nb
;
{
X
=
n
==
dA
->
nt
-
1
?
dA
->
n
-
n
*
dA
->
nb
:
dA
->
nb
;
MORSE_TASK_ztile_zero
(
MORSE_TASK_ztile_zero
(
&
options
,
&
options
,
0
,
X
,
0
,
Y
,
0
,
tempnn
,
0
,
tempmm
,
A
(
m
,
n
),
ld
t
);
A
(
m
,
n
),
ld
am
);
}
}
}
}
...
...
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