Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
AGULLO Emmanuel
Chameleon
Commits
7589d389
Commit
7589d389
authored
Jan 30, 2018
by
Mathieu Faverge
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sonarqube' into 'master'
Sonarqube second round See merge request
solverstack/chameleon!80
parents
adb41a00
d6270e10
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
10 deletions
+16
-10
control/descriptor.c
control/descriptor.c
+1
-0
control/workspace.c
control/workspace.c
+1
-1
runtime/parsec/control/runtime_descriptor.c
runtime/parsec/control/runtime_descriptor.c
+2
-1
runtime/starpu/control/runtime_profiling.c
runtime/starpu/control/runtime_profiling.c
+6
-5
testing/testing_zgemm.c
testing/testing_zgemm.c
+2
-2
timing/timing.c
timing/timing.c
+4
-1
No files found.
control/descriptor.c
View file @
7589d389
...
...
@@ -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 @
7589d389
...
...
@@ -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 @
7589d389
...
...
@@ -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 @
7589d389
...
...
@@ -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 @
7589d389
...
...
@@ -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 @
7589d389
...
...
@@ -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
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