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
002fea6e
Commit
002fea6e
authored
8 years ago
by
Guillaume Sylvand
Browse files
Options
Downloads
Patches
Plain Diff
timing: better handles the return codes (and the failures...)
parent
212339b4
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/timing.c
+13
-7
13 additions, 7 deletions
timing/timing.c
timing/timing.h
+4
-2
4 additions, 2 deletions
timing/timing.h
with
17 additions
and
9 deletions
timing/timing.c
+
13
−
7
View file @
002fea6e
...
...
@@ -160,7 +160,8 @@ Test(int64_t n, int *iparam) {
gflops
=
0
.
0
;
if
(
iparam
[
IPARAM_WARMUP
]
)
{
RunTest
(
iparam
,
dparam
,
&
(
t
[
0
]));
int
status
=
RunTest
(
iparam
,
dparam
,
&
(
t
[
0
]));
if
(
status
!=
MORSE_SUCCESS
)
return
status
;
}
sumgf
=
0
.
0
;
...
...
@@ -178,15 +179,17 @@ Test(int64_t n, int *iparam) {
if
(
iparam
[
IPARAM_PROFILE
]
)
iparam
[
IPARAM_PROFILE
]
=
2
;
RunTest
(
iparam
,
dparam
,
&
(
t
[
iter
]));
int
status
=
RunTest
(
iparam
,
dparam
,
&
(
t
[
iter
]));
if
(
status
!=
MORSE_SUCCESS
)
return
status
;
iparam
[
IPARAM_TRACE
]
=
0
;
iparam
[
IPARAM_DAG
]
=
0
;
iparam
[
IPARAM_PROFILE
]
=
0
;
}
else
RunTest
(
iparam
,
dparam
,
&
(
t
[
iter
]));
else
{
int
status
=
RunTest
(
iparam
,
dparam
,
&
(
t
[
iter
]));
if
(
status
!=
MORSE_SUCCESS
)
return
status
;
}
gflops
=
flops
/
t
[
iter
];
#if defined (CHAMELEON_SCHED_STARPU)
...
...
@@ -677,7 +680,8 @@ main(int argc, char *argv[]) {
if
(
step
<
1
)
step
=
1
;
Test
(
-
1
,
iparam
);
/* print header */
int
status
=
Test
(
-
1
,
iparam
);
/* print header */
if
(
status
!=
MORSE_SUCCESS
)
return
status
;
for
(
i
=
start
;
i
<=
stop
;
i
+=
step
)
{
if
(
nx
>
0
)
{
...
...
@@ -691,7 +695,9 @@ main(int argc, char *argv[]) {
iparam
[
IPARAM_M
]
=
i
;
iparam
[
IPARAM_N
]
=
i
;
}
success
+=
Test
(
iparam
[
IPARAM_N
],
iparam
);
int
status
=
Test
(
iparam
[
IPARAM_N
],
iparam
);
if
(
status
!=
MORSE_SUCCESS
)
return
status
;
success
+=
status
;
}
MORSE_Finalize
();
...
...
This diff is collapsed.
Click to expand it.
timing/timing.h
+
4
−
2
View file @
002fea6e
...
...
@@ -106,13 +106,15 @@ enum dparam_timing {
/* Paste code to allocate a matrix in desc if cond_init is true */
#define PASTE_CODE_ALLOCATE_MATRIX_TILE(_desc_, _cond_, _type_, _type2_, _lda_, _m_, _n_) \
MORSE_desc_t *_desc_ = NULL; \
int status ## _desc_ ; \
if( _cond_ ) { \
if (!bigmat) \
MORSE_Desc_Create_User(&(_desc_), NULL, _type2_, MB, NB, MB*NB, _lda_, _n_, 0, 0, _m_, _n_, \
status ## _desc_ =
MORSE_Desc_Create_User(&(_desc_), NULL, _type2_, MB, NB, MB*NB, _lda_, _n_, 0, 0, _m_, _n_, \
P, Q, morse_getaddr_null, NULL, NULL);\
else \
MORSE_Desc_Create(&(_desc_), NULL, _type2_, MB, NB, MB*NB, _lda_, _n_, 0, 0, _m_, _n_, \
status ## _desc_ =
MORSE_Desc_Create(&(_desc_), NULL, _type2_, MB, NB, MB*NB, _lda_, _n_, 0, 0, _m_, _n_, \
P, Q);\
if (status ## _desc_ != MORSE_SUCCESS) return (status ## _desc_); \
}
#define PASTE_CODE_FREE_MATRIX(_desc_) \
...
...
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