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
d70f1843
Commit
d70f1843
authored
9 years ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
Silent warnings in lange timings
parent
f9eb09aa
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
timing/time_zlange.c
+11
-15
11 additions, 15 deletions
timing/time_zlange.c
timing/time_zlange_tile.c
+5
-7
5 additions, 7 deletions
timing/time_zlange_tile.c
with
16 additions
and
22 deletions
timing/time_zlange.c
+
11
−
15
View file @
d70f1843
/**
*
* @
c
opyright (c) 2009-2014 The University of Tennessee and The University
* @
C
opyright (c) 2009-2014 The University of Tennessee and The University
* of Tennessee Research Foundation.
* All rights reserved.
* @copyright (c) 2012-2014 Inria. All rights reserved.
...
...
@@ -24,17 +24,13 @@
#include
"./timing.c"
static
int
RunTest
(
int
*
iparam
,
double
*
dparam
,
morse_time_t
*
t_
)
RunTest
(
int
*
iparam
,
double
*
dparam
,
morse_time_t
*
t_
)
{
int
hres
=
0
;
int
n
;
double
normmorse
,
normlapack
,
result
;
double
eps
;
int
norm
[
4
]
=
{
MorseMaxNorm
,
MorseOneNorm
,
MorseInfNorm
,
MorseFrobeniusNorm
};
char
*
normstr
[
4
]
=
{
"Max"
,
"One"
,
"Inf"
,
"Fro"
};
PASTE_CODE_IPARAM_LOCALS
(
iparam
);
int
hres
=
0
;
double
normmorse
,
normlapack
,
result
;
int
norm
=
MorseInfNorm
;
eps
=
LAPACKE_dlamch_work
(
'e'
);
PASTE_CODE_IPARAM_LOCALS
(
iparam
);
/* Allocate Data */
PASTE_CODE_ALLOCATE_MATRIX
(
A
,
1
,
MORSE_Complex64_t
,
M
,
N
);
...
...
@@ -43,16 +39,16 @@ RunTest(int *iparam, double *dparam, morse_time_t *t_)
/* MORSE ZLANGE */
START_TIMING
();
normmorse
=
MORSE_zlange
(
MorseInfN
orm
,
M
,
N
,
A
,
LDA
);
normmorse
=
MORSE_zlange
(
n
orm
,
M
,
N
,
A
,
LDA
);
STOP_TIMING
();
/* Check the solution */
if
(
check
)
{
double
*
work
=
(
double
*
)
malloc
(
max
(
M
,
N
)
*
sizeof
(
double
));
normlapack
=
LAPACKE_zlange_work
(
LAPACK_COL_MAJOR
,
'I'
,
M
,
N
,
A
,
LDA
,
work
);
result
=
fabs
(
normmorse
-
normlapack
);
switch
(
norm
[
2
]
)
{
normlapack
=
LAPACKE_zlange_work
(
LAPACK_COL_MAJOR
,
morse_lapack_const
(
norm
)
,
M
,
N
,
A
,
LDA
,
work
);
result
=
fabs
(
normmorse
-
normlapack
);
switch
(
norm
)
{
case
MorseMaxNorm
:
/* result should be perfectly equal */
break
;
...
...
@@ -70,7 +66,7 @@ RunTest(int *iparam, double *dparam, morse_time_t *t_)
break
;
}
if
(
MORSE_My_Mpi_Rank
()
==
0
)
{
dparam
[
IPARAM_ANORM
]
=
normlapack
;
dparam
[
IPARAM_ANORM
]
=
normlapack
;
dparam
[
IPARAM_BNORM
]
=
0
.;
dparam
[
IPARAM_XNORM
]
=
1
.;
dparam
[
IPARAM_RES
]
=
result
;
...
...
This diff is collapsed.
Click to expand it.
timing/time_zlange_tile.c
+
5
−
7
View file @
d70f1843
...
...
@@ -28,11 +28,9 @@ static int
RunTest
(
int
*
iparam
,
double
*
dparam
,
morse_time_t
*
t_
)
{
double
normmorse
,
normlapack
,
result
;
double
eps
;
int
norm
[
4
]
=
{
MorseMaxNorm
,
MorseOneNorm
,
MorseInfNorm
,
MorseFrobeniusNorm
};
PASTE_CODE_IPARAM_LOCALS
(
iparam
);
int
norm
=
MorseInfNorm
;
eps
=
LAPACKE_dlamch_work
(
'e'
);
PASTE_CODE_IPARAM_LOCALS
(
iparam
);
/* Allocate Data */
PASTE_CODE_ALLOCATE_MATRIX_TILE
(
descA
,
1
,
MORSE_Complex64_t
,
MorseComplexDouble
,
LDA
,
M
,
N
);
...
...
@@ -40,7 +38,7 @@ RunTest(int *iparam, double *dparam, morse_time_t *t_)
/* MORSE ZPOSV */
START_TIMING
();
normmorse
=
MORSE_zlange_Tile
(
MorseInfN
orm
,
descA
);
normmorse
=
MORSE_zlange_Tile
(
n
orm
,
descA
);
STOP_TIMING
();
/* Check the solution */
...
...
@@ -49,9 +47,9 @@ RunTest(int *iparam, double *dparam, morse_time_t *t_)
/* Allocate Data */
PASTE_TILE_TO_LAPACK
(
descA
,
A
,
check
,
MORSE_Complex64_t
,
M
,
N
);
double
*
work
=
(
double
*
)
malloc
(
max
(
M
,
N
)
*
sizeof
(
double
));
normlapack
=
LAPACKE_zlange_work
(
LAPACK_COL_MAJOR
,
'I'
,
M
,
N
,
A
,
LDA
,
work
);
normlapack
=
LAPACKE_zlange_work
(
LAPACK_COL_MAJOR
,
morse_lapack_const
(
norm
)
,
M
,
N
,
A
,
LDA
,
work
);
result
=
fabs
(
normmorse
-
normlapack
);
switch
(
norm
[
2
]
)
{
switch
(
norm
)
{
case
MorseMaxNorm
:
/* result should be perfectly equal */
break
;
...
...
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