Commit 8fc53a20 authored by Mathieu Faverge's avatar Mathieu Faverge

Remove unused code reported by sonarqube

parent d7123639
...@@ -39,9 +39,8 @@ void CORE_zhe2ge(MORSE_enum uplo, int M, int N, ...@@ -39,9 +39,8 @@ void CORE_zhe2ge(MORSE_enum uplo, int M, int N,
MORSE_Complex64_t *Bptr, *BTptr; MORSE_Complex64_t *Bptr, *BTptr;
int i, j; int i, j;
Aptr = A; Aptr = A;
Bptr = B; Bptr = B;
BTptr = B;
if (uplo == MorseLower){ if (uplo == MorseLower){
for (j = 0; j < N; j++){ for (j = 0; j < N; j++){
...@@ -57,23 +56,10 @@ void CORE_zhe2ge(MORSE_enum uplo, int M, int N, ...@@ -57,23 +56,10 @@ void CORE_zhe2ge(MORSE_enum uplo, int M, int N,
} }
Aptr += (LDA - i + j + 1); Aptr += (LDA - i + j + 1);
Bptr += (LDB - i + j + 1); Bptr += (LDB - i + j + 1);
/* Bptr[ j * LDB + j ] = A[ j * LDA + j ]; */
/* for (i = j+1; i < M; i++) { */
/* Bptr [ j * LDB + i ] = A[ j * LDA + i ]; */
/* BTptr[ i * LDB + j ] = conj(A[ j * LDA + i ]); */
/* } */
} }
} }
else{ else{
for (j = 0; j < N; j++){ for (j = 0; j < N; j++){
/* for (i = 0; i < j; i++) { */
/* Bptr [ j * LDB + i ] = A[ j * LDA + i ]; */
/* BTptr[ i * LDB + j ] = conj(A[ j * LDA + i ]); */
/* } */
/* Bptr[ j * LDB + j ] = A[ j * LDA + j ]; */
BTptr = B + j; BTptr = B + j;
for (i = 0; i < j; i++, Bptr++, Aptr++, BTptr += LDB) { for (i = 0; i < j; i++, Bptr++, Aptr++, BTptr += LDB) {
*Bptr = *Aptr; *Bptr = *Aptr;
......
...@@ -145,8 +145,6 @@ void RUNTIME_desc_create( MORSE_desc_t *desc ) ...@@ -145,8 +145,6 @@ void RUNTIME_desc_create( MORSE_desc_t *desc )
{ {
int64_t lmt = desc->lmt; int64_t lmt = desc->lmt;
int64_t lnt = desc->lnt; int64_t lnt = desc->lnt;
starpu_data_handle_t *tiles;
(void)tiles;
desc->occurences = 1; desc->occurences = 1;
...@@ -156,7 +154,6 @@ void RUNTIME_desc_create( MORSE_desc_t *desc ) ...@@ -156,7 +154,6 @@ void RUNTIME_desc_create( MORSE_desc_t *desc )
*/ */
desc->schedopt = (void*)calloc(lnt*lmt,sizeof(starpu_data_handle_t)); desc->schedopt = (void*)calloc(lnt*lmt,sizeof(starpu_data_handle_t));
assert(desc->schedopt); assert(desc->schedopt);
tiles = (starpu_data_handle_t*)(desc->schedopt);
#if defined(CHAMELEON_USE_CUDA) && !defined(CHAMELEON_SIMULATION) #if defined(CHAMELEON_USE_CUDA) && !defined(CHAMELEON_SIMULATION)
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment