Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
PaStiX
Commits
75100217
Commit
75100217
authored
Aug 03, 2017
by
Mathieu Faverge
Browse files
Make LDLt/LDLh work in sequential and multi-thread
parent
65a1e0ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
sopalin/sequential_zhetrf.c
View file @
75100217
...
...
@@ -36,7 +36,7 @@ sequential_zhetrf( pastix_data_t *pastix_data,
SolverCblk
*
cblk
;
double
threshold
=
sopalin_data
->
diagthreshold
;
pastix_complex64_t
*
work1
,
*
work2
;
pastix_int_t
i
;
pastix_int_t
N
,
i
;
(
void
)
pastix_data
;
MALLOC_INTERN
(
work1
,
pastix_imax
(
datacode
->
gemmmax
,
datacode
->
diagmax
),
...
...
@@ -50,9 +50,11 @@ sequential_zhetrf( pastix_data_t *pastix_data,
if
(
cblk
->
cblktype
&
CBLK_IN_SCHUR
)
break
;
N
=
cblk_colnbr
(
cblk
);
/* Compute */
cpucblk_zhetrfsp1d
(
datacode
,
cblk
,
threshold
,
work1
,
work2
);
work1
-
(
N
*
N
)
,
work2
);
}
#if defined(PASTIX_DEBUG_FACTO)
...
...
@@ -71,7 +73,7 @@ thread_pzhetrf( isched_thread_t *ctx, void *args )
SolverCblk
*
cblk
;
Task
*
t
;
pastix_complex64_t
*
work1
,
*
work2
;
pastix_int_t
i
,
ii
;
pastix_int_t
N
,
i
,
ii
;
pastix_int_t
tasknbr
,
*
tasktab
;
int
rank
=
ctx
->
rank
;
...
...
@@ -90,12 +92,14 @@ thread_pzhetrf( isched_thread_t *ctx, void *args )
if
(
cblk
->
cblktype
&
CBLK_IN_SCHUR
)
continue
;
N
=
cblk_colnbr
(
cblk
);
/* Wait */
do
{}
while
(
cblk
->
ctrbcnt
);
/* Compute */
cpucblk_zhetrfsp1d
(
datacode
,
cblk
,
sopalin_data
->
diagthreshold
,
work1
,
work2
);
work1
-
(
N
*
N
)
,
work2
);
}
#if defined(PASTIX_DEBUG_FACTO) && 0
...
...
sopalin/sequential_zsytrf.c
View file @
75100217
...
...
@@ -36,7 +36,7 @@ sequential_zsytrf( pastix_data_t *pastix_data,
SolverCblk
*
cblk
;
double
threshold
=
sopalin_data
->
diagthreshold
;
pastix_complex64_t
*
work1
,
*
work2
;
pastix_int_t
i
;
pastix_int_t
N
,
i
;
(
void
)
pastix_data
;
MALLOC_INTERN
(
work1
,
pastix_imax
(
datacode
->
gemmmax
,
datacode
->
diagmax
),
...
...
@@ -50,9 +50,11 @@ sequential_zsytrf( pastix_data_t *pastix_data,
if
(
cblk
->
cblktype
&
CBLK_IN_SCHUR
)
break
;
N
=
cblk_colnbr
(
cblk
);
/* Compute */
cpucblk_zsytrfsp1d
(
datacode
,
cblk
,
threshold
,
work1
,
work2
);
work1
-
(
N
*
N
)
,
work2
);
}
#if defined(PASTIX_DEBUG_FACTO)
...
...
@@ -71,7 +73,7 @@ thread_pzsytrf( isched_thread_t *ctx, void *args )
SolverCblk
*
cblk
;
Task
*
t
;
pastix_complex64_t
*
work1
,
*
work2
;
pastix_int_t
i
,
ii
;
pastix_int_t
N
,
i
,
ii
;
pastix_int_t
tasknbr
,
*
tasktab
;
int
rank
=
ctx
->
rank
;
...
...
@@ -90,12 +92,14 @@ thread_pzsytrf( isched_thread_t *ctx, void *args )
if
(
cblk
->
cblktype
&
CBLK_IN_SCHUR
)
continue
;
N
=
cblk_colnbr
(
cblk
);
/* Wait */
do
{}
while
(
cblk
->
ctrbcnt
);
/* Compute */
cpucblk_zsytrfsp1d
(
datacode
,
cblk
,
sopalin_data
->
diagthreshold
,
work1
,
work2
);
work1
-
(
N
*
N
)
,
work2
);
}
#if defined(PASTIX_DEBUG_FACTO) && 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