Skip to content

Commit

Permalink
Merge pull request #126 from abouteiller/cleanup/unused-vars
Browse files Browse the repository at this point in the history
Fix warnings found by clang17, some missing copyrights
  • Loading branch information
bosilca authored Oct 24, 2024
2 parents 316efd3 + 99ccf36 commit 4ad5c19
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 11 deletions.
12 changes: 5 additions & 7 deletions src/dplasma_hqr_dbg.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/*
* Copyright (c) 2010-2020 The University of Tennessee and The University
* Copyright (c) 2010-2024 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights
* reserved.
*
* $COPYRIGHT
*
* @precisions normal z -> s d c
*
*
Expand Down Expand Up @@ -304,7 +306,6 @@ void dplasma_qrtree_print_type( parsec_tiled_matrix_t *A, dplasma_qrtree_t *qrtr
{
int minMN = dplasma_imin(A->mt, A->nt );
int m, k;
int lm = 0;
int lmg = 0;
int rank = 0;

Expand All @@ -326,11 +327,10 @@ void dplasma_qrtree_print_type( parsec_tiled_matrix_t *A, dplasma_qrtree_t *qrtr
for (k=dplasma_imin(minMN, lmg+1); k<minMN; k++) {
printf( " " );
}
lm++; lmg+=qrtree->p;
lmg+=qrtree->p;
if ( lmg >= A->mt ) {
rank++;
lmg = rank;
lm = 0;
}
printf("\n");
}
Expand All @@ -340,7 +340,6 @@ void dplasma_qrtree_print_pivot( parsec_tiled_matrix_t *A, dplasma_qrtree_t *qrt
{
int minMN = dplasma_imin(A->mt, A->nt );
int m, k;
int lm = 0;
int lmg = 0;
int rank = 0;
printf("\n------------ Current Pivot--------------\n");
Expand All @@ -361,11 +360,10 @@ void dplasma_qrtree_print_pivot( parsec_tiled_matrix_t *A, dplasma_qrtree_t *qrt
for (k=dplasma_imin(minMN, lmg+1); k<minMN; k++) {
printf( " " );
}
lm++; lmg+=qrtree->p;
lmg+=qrtree->p;
if ( lmg >= A->mt ) {
rank++;
lmg = rank;
lm = 0;
}
printf("\n");
}
Expand Down
12 changes: 12 additions & 0 deletions src/utils/dplasma_arena_datatype.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
/*
* Copyright (c) 2020-2024 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights
* reserved.
*
* $COPYRIGHT
*
*/
#include "dplasma_arena_datatype.h"
#include <string.h>

#ifdef REUSE_ARENA_DATATYPE
static parsec_key_fn_t arena_key_fns = {
.key_equal = parsec_hash_table_generic_64bits_key_equal,
.key_print = parsec_hash_table_generic_64bits_key_print,
Expand Down Expand Up @@ -39,6 +48,7 @@ static parsec_key_fn_t dtt_key_fns = {
.key_print = dtt_key_print,
.key_hash = dtt_key_hash
};
#endif /* REUSE_ARENA_DATATYPE */

parsec_hash_table_t *dplasma_arenas = NULL;
parsec_hash_table_t *dplasma_datatypes = NULL;
Expand All @@ -53,6 +63,7 @@ static void dplasma_arenas_release(void *item, void*cb_data)
free(arena_entry);
}

#ifdef REUSE_ARENA_DATATYPE
static void dplasma_datatypes_release(void *item, void*cb_data)
{
(void)cb_data;
Expand Down Expand Up @@ -81,6 +92,7 @@ static void dplasma_datatypes_fini()
PARSEC_OBJ_RELEASE(dplasma_datatypes);
}
}
#endif /* REUSE_ARENA_DATATYPE */

int dplasma_get_or_construct_arena(parsec_arena_t** parena,
size_t elem_size,
Expand Down
7 changes: 4 additions & 3 deletions src/zgetrf_qrf.jdf
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
extern "C" %{
/*
* Copyright (c) 2010-2020 The University of Tennessee and The University
* Copyright (c) 2010-2024 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights
* reserved.
* Copyright (c) 2013 Inria. All rights reserved.
*
* $COPYRIGHT
*
* @precisions normal z -> s d c
Expand Down Expand Up @@ -1141,9 +1142,9 @@ BODY
cond = k%2;
}

if (alpha == 0)
if (alpha == 0.0)
cond = 0;
if (alpha >= 9999999999)
if (alpha >= 1e10)
cond = 1;
cond_affect:
lu_tab[k] = cond;
Expand Down
2 changes: 1 addition & 1 deletion src/zpotrf_L.jdf
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ END
BODY [type=HIP]
{
int tempkm = k == descA->mt-1 ? descA->m - k*descA->mb : descA->mb;
int ldak = LDA(descA, T);
int ldak = LDA(ddescA, T);

rocblas_status status;
rocblas_fill rocblas_uplo;
Expand Down

0 comments on commit 4ad5c19

Please sign in to comment.