Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AGULLO Emmanuel
Chameleon
Commits
d6270e10
Commit
d6270e10
authored
Jan 30, 2018
by
Mathieu Faverge
Browse files
Sonarqube bug fixes
parent
adb41a00
Changes
6
Hide whitespace changes
Inline
Side-by-side
control/descriptor.c
View file @
d6270e10
...
...
@@ -430,6 +430,7 @@ int MORSE_Desc_Create(MORSE_desc_t **descptr, void *mat, MORSE_enum dtyp, int mb
if
((
desc
->
mat
=
RUNTIME_malloc
(
size
))
==
NULL
)
{
morse_error
(
"MORSE_Desc_Create"
,
"malloc() failed"
);
free
(
desc
);
return
MORSE_ERR_OUT_OF_RESOURCES
;
}
desc
->
use_mat
=
1
;
...
...
control/workspace.c
View file @
d6270e10
...
...
@@ -142,7 +142,7 @@ int morse_alloc_ipiv(int M, int N, MORSE_enum func, int type, MORSE_desc_t **des
ln
=
NB
*
NT
;
size
=
(
size_t
)(
chameleon_min
(
MT
,
NT
)
*
NB
*
NT
*
sizeof
(
int
));
if
(
size
<
=
0
)
{
if
(
size
=
=
0
)
{
*
IPIV
=
NULL
;
return
MORSE_SUCCESS
;
}
...
...
runtime/parsec/control/runtime_descriptor.c
View file @
d6270e10
...
...
@@ -188,7 +188,8 @@ morse_parsec_key_to_string(parsec_data_collection_t *data_collection, parsec_dat
res
=
snprintf
(
buffer
,
buffer_size
,
"(%d, %d)"
,
m
,
n
);
if
(
res
<
0
)
{
printf
(
"error in key_to_string for tile (%u, %u) key: %u
\n
"
,
m
,
n
,
datakey
);
printf
(
"error in key_to_string for tile (%u, %u) key: %u
\n
"
,
(
unsigned
int
)
m
,
(
unsigned
int
)
n
,
datakey
);
}
return
res
;
}
...
...
runtime/starpu/control/runtime_profiling.c
View file @
d6270e10
...
...
@@ -25,10 +25,10 @@
#endif
#ifdef CHAMELEON_ENABLE_PRUNING_STATS
unsigned
long
RUNTIME_total_tasks
;
unsigned
long
RUNTIME_exec_tasks
;
unsigned
long
RUNTIME_comm_tasks
;
unsigned
long
RUNTIME_changed_tasks
;
unsigned
long
RUNTIME_total_tasks
=
0
;
unsigned
long
RUNTIME_exec_tasks
=
0
;
unsigned
long
RUNTIME_comm_tasks
=
0
;
unsigned
long
RUNTIME_changed_tasks
=
0
;
#endif
double
RUNTIME_get_time
(){
...
...
@@ -81,7 +81,8 @@ void RUNTIME_start_stats(){
void
RUNTIME_stop_stats
(){
#ifdef CHAMELEON_ENABLE_PRUNING_STATS
fprintf
(
stderr
,
"
\n
tasks: %u = exec: %u + comm: %u + changed: %u
\n
"
,
RUNTIME_total_tasks
,
RUNTIME_exec_tasks
,
RUNTIME_comm_tasks
,
RUNTIME_changed_tasks
);
fprintf
(
stderr
,
"
\n
tasks: %ul = exec: %ul + comm: %ul + changed: %ul
\n
"
,
RUNTIME_total_tasks
,
RUNTIME_exec_tasks
,
RUNTIME_comm_tasks
,
RUNTIME_changed_tasks
);
#endif
}
...
...
testing/testing_zgemm.c
View file @
d6270e10
...
...
@@ -88,9 +88,9 @@ int testing_zgemm(int argc, char **argv)
MORSE_Complex64_t
*
Cfinal
=
(
MORSE_Complex64_t
*
)
malloc
(
LDCxN
*
sizeof
(
MORSE_Complex64_t
));
/* Check if unable to allocate memory */
if
(
(
!
A
)
||
(
!
B
)
||
(
!
Cinit
)
||
(
!
Cfinal
)
)
if
(
(
!
A
)
||
(
!
B
)
||
(
!
C
)
||
(
!
Cinit
)
||
(
!
Cfinal
)
)
{
free
(
A
);
free
(
B
);
free
(
A
);
free
(
B
);
free
(
C
);
free
(
Cinit
);
free
(
Cfinal
);
printf
(
"Out of Memory
\n
"
);
return
-
2
;
...
...
timing/timing.c
View file @
d6270e10
...
...
@@ -170,7 +170,10 @@ Test(int64_t n, int *iparam) {
if
(
iparam
[
IPARAM_WARMUP
]
)
{
int
status
=
RunTest
(
iparam
,
dparam
,
&
(
t
[
0
]));
if
(
status
!=
MORSE_SUCCESS
)
return
status
;
if
(
status
!=
MORSE_SUCCESS
)
{
free
(
t
);
return
status
;
}
}
sumgf
=
0
.
0
;
...
...
Write
Preview
Supports
Markdown
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