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
a2c4f527
Commit
a2c4f527
authored
Dec 15, 2014
by
PRUVOST Florent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
memset T to 0 for parfb on gpu
parent
bb558c25
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
+7
-3
testing/testing_zgels.c
testing/testing_zgels.c
+1
-0
timing/time_zgels.c
timing/time_zgels.c
+2
-1
timing/time_zgels_tile.c
timing/time_zgels_tile.c
+1
-0
timing/time_zgeqrf.c
timing/time_zgeqrf.c
+3
-2
No files found.
testing/testing_zgels.c
View file @
a2c4f527
...
...
@@ -271,6 +271,7 @@ int testing_zgels(int argc, char **argv)
}
MORSE_Alloc_Workspace_zgels
(
M
,
N
,
&
T
);
memset
(
T
->
mat
,
0
,
(
T
->
llm
*
T
->
lln
)
*
sizeof
(
MORSE_Complex64_t
));
eps
=
BLAS_dfpinfo
(
blas_eps
);
/*----------------------------------------------------------
...
...
timing/time_zgels.c
View file @
a2c4f527
...
...
@@ -29,7 +29,7 @@ RunTest(int *iparam, double *dparam, morse_time_t *t_)
{
MORSE_desc_t
*
T
;
PASTE_CODE_IPARAM_LOCALS
(
iparam
);
if
(
M
!=
N
)
{
fprintf
(
stderr
,
"This timing works only with M == N
\n
"
);
return
-
1
;
...
...
@@ -46,6 +46,7 @@ RunTest(int *iparam, double *dparam, morse_time_t *t_)
MORSE_zplrnt
(
M
,
NRHS
,
x
,
LDB
,
5673
);
MORSE_Alloc_Workspace_zgels
(
M
,
N
,
&
T
);
memset
(
T
->
mat
,
0
,
(
T
->
llm
*
T
->
lln
)
*
sizeof
(
MorseComplexDouble
));
/* Save A and b */
if
(
check
)
{
...
...
timing/time_zgels_tile.c
View file @
a2c4f527
...
...
@@ -46,6 +46,7 @@ RunTest(int *iparam, double *dparam, morse_time_t *t_)
/* Allocate Workspace */
MORSE_Alloc_Workspace_zgels_Tile
(
M
,
N
,
&
descT
);
memset
(
descT
->
mat
,
0
,
(
descT
->
llm
*
descT
->
lln
)
*
sizeof
(
MorseComplexDouble
));
/* Save A and B for check */
if
(
check
==
1
){
...
...
timing/time_zgeqrf.c
View file @
a2c4f527
...
...
@@ -43,6 +43,7 @@ RunTest(int *iparam, double *dparam, morse_time_t *t_)
/* Allocate Workspace */
MORSE_Alloc_Workspace_zgels
(
M
,
N
,
&
T
);
memset
(
T
->
mat
,
0
,
(
T
->
llm
*
T
->
lln
)
*
sizeof
(
MorseComplexDouble
));
/* Save AT in lapack layout for check */
PASTE_CODE_ALLOCATE_COPY
(
Acpy
,
check
,
MORSE_Complex64_t
,
A
,
LDA
,
N
);
...
...
@@ -50,14 +51,14 @@ RunTest(int *iparam, double *dparam, morse_time_t *t_)
START_TIMING
();
MORSE_zgeqrf
(
M
,
N
,
A
,
LDA
,
T
);
STOP_TIMING
();
/* Check the solution */
if
(
check
)
{
PASTE_CODE_ALLOCATE_MATRIX
(
X
,
1
,
MORSE_Complex64_t
,
LDB
,
NRHS
);
MORSE_zplrnt
(
N
,
NRHS
,
X
,
LDB
,
5673
);
PASTE_CODE_ALLOCATE_COPY
(
B
,
1
,
MORSE_Complex64_t
,
X
,
LDB
,
NRHS
);
MORSE_zgeqrs
(
M
,
N
,
NRHS
,
A
,
LDA
,
T
,
X
,
LDB
);
dparam
[
IPARAM_RES
]
=
z_check_solution
(
M
,
N
,
NRHS
,
Acpy
,
LDA
,
B
,
X
,
LDB
,
...
...
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