From 98d7217a0f394579d24a3b562bb2ba3cd2e5dfb4 Mon Sep 17 00:00:00 2001 From: Mathieu Faverge <mathieu.faverge@inria.fr> Date: Mon, 11 Oct 2021 21:45:50 +0200 Subject: [PATCH] gcc/quark: silent compilation warnings --- .../quark/codelets/codelet_zgetrf_incpiv.c | 4 ++++ runtime/quark/codelets/codelet_zgetrf_nopiv.c | 2 ++ runtime/quark/codelets/codelet_zhe2ge.c | 4 +++- runtime/quark/codelets/codelet_zlacpy.c | 1 + runtime/quark/codelets/codelet_zlange.c | 10 +++++---- runtime/quark/codelets/codelet_zlanhe.c | 14 +++++++----- runtime/quark/codelets/codelet_zlansy.c | 14 +++++++----- runtime/quark/codelets/codelet_zlantr.c | 22 +++++++++++-------- runtime/quark/codelets/codelet_zlascal.c | 2 ++ runtime/quark/codelets/codelet_zlatro.c | 4 +++- runtime/quark/codelets/codelet_zlauum.c | 10 +++++---- runtime/quark/codelets/codelet_zplssq.c | 1 - runtime/quark/codelets/codelet_zpotrf.c | 2 ++ runtime/quark/codelets/codelet_zsytrf_nopiv.c | 2 ++ runtime/quark/codelets/codelet_ztrmm.c | 2 ++ runtime/quark/codelets/codelet_ztrsm.c | 2 ++ runtime/quark/codelets/codelet_ztrtri.c | 2 ++ runtime/quark/control/runtime_async.c | 3 +-- runtime/quark/control/runtime_context.c | 1 - runtime/quark/control/runtime_control.c | 2 -- runtime/quark/control/runtime_descriptor.c | 1 - runtime/quark/control/runtime_options.c | 2 -- 22 files changed, 67 insertions(+), 40 deletions(-) diff --git a/runtime/quark/codelets/codelet_zgetrf_incpiv.c b/runtime/quark/codelets/codelet_zgetrf_incpiv.c index be4374bb2..3cfe46a71 100644 --- a/runtime/quark/codelets/codelet_zgetrf_incpiv.c +++ b/runtime/quark/codelets/codelet_zgetrf_incpiv.c @@ -69,4 +69,8 @@ void INSERT_TASK_zgetrf_incpiv(const RUNTIME_option_t *options, sizeof(int), &iinfo, VALUE, 0); + (void)L; + (void)Lm; + (void)Ln; + (void)nb; } diff --git a/runtime/quark/codelets/codelet_zgetrf_nopiv.c b/runtime/quark/codelets/codelet_zgetrf_nopiv.c index 0c1d77fee..b59d417e9 100644 --- a/runtime/quark/codelets/codelet_zgetrf_nopiv.c +++ b/runtime/quark/codelets/codelet_zgetrf_nopiv.c @@ -60,4 +60,6 @@ void INSERT_TASK_zgetrf_nopiv(const RUNTIME_option_t *options, sizeof(RUNTIME_request_t*), &(options->request), VALUE, sizeof(int), &iinfo, VALUE, 0); + + (void)nb; } diff --git a/runtime/quark/codelets/codelet_zhe2ge.c b/runtime/quark/codelets/codelet_zhe2ge.c index 7c0379a46..73d5f6f67 100644 --- a/runtime/quark/codelets/codelet_zhe2ge.c +++ b/runtime/quark/codelets/codelet_zhe2ge.c @@ -36,7 +36,7 @@ static inline void CORE_zhe2ge_quark(Quark *quark) void INSERT_TASK_zhe2ge( const RUNTIME_option_t *options, cham_uplo_t uplo, - int m, int n, int mb, + int m, int n, int nb, const CHAM_desc_t *A, int Am, int An, const CHAM_desc_t *B, int Bm, int Bn ) { @@ -49,4 +49,6 @@ void INSERT_TASK_zhe2ge( const RUNTIME_option_t *options, sizeof(void*), RTBLKADDR(A, CHAMELEON_Complex64_t, Am, An), INPUT, sizeof(void*), RTBLKADDR(B, CHAMELEON_Complex64_t, Bm, Bn), OUTPUT, 0); + + (void)nb; } diff --git a/runtime/quark/codelets/codelet_zlacpy.c b/runtime/quark/codelets/codelet_zlacpy.c index b8cf0bc3f..79085b4f0 100644 --- a/runtime/quark/codelets/codelet_zlacpy.c +++ b/runtime/quark/codelets/codelet_zlacpy.c @@ -64,6 +64,7 @@ void INSERT_TASK_zlacpyx( const RUNTIME_option_t *options, sizeof(int), &displB, VALUE, sizeof(void*), RTBLKADDR(B, CHAMELEON_Complex64_t, Bm, Bn), OUTPUT, 0); + (void)nb; } void INSERT_TASK_zlacpy( const RUNTIME_option_t *options, diff --git a/runtime/quark/codelets/codelet_zlange.c b/runtime/quark/codelets/codelet_zlange.c index d0443c3dd..920e83e65 100644 --- a/runtime/quark/codelets/codelet_zlange.c +++ b/runtime/quark/codelets/codelet_zlange.c @@ -38,22 +38,24 @@ void CORE_zlange_quark(Quark *quark) } void INSERT_TASK_zlange(const RUNTIME_option_t *options, - cham_normtype_t norm, int M, int N, int NB, + cham_normtype_t norm, int m, int n, int nb, const CHAM_desc_t *A, int Am, int An, const CHAM_desc_t *B, int Bm, int Bn) { quark_option_t *opt = (quark_option_t*)(options->schedopt); DAG_CORE_LANGE; - int szeW = chameleon_max( M, N ); + int szeW = chameleon_max( m, n ); QUARK_Insert_Task( opt->quark, CORE_zlange_quark, (Quark_Task_Flags*)opt, sizeof(int), &norm, VALUE, - sizeof(int), &M, VALUE, - sizeof(int), &N, VALUE, + sizeof(int), &m, VALUE, + sizeof(int), &n, VALUE, sizeof(void*), RTBLKADDR(A, CHAMELEON_Complex64_t, Am, An), INPUT, sizeof(double)*szeW, NULL, SCRATCH, sizeof(void*), RTBLKADDR(B, double, Bm, Bn), OUTPUT, 0); + + (void)nb; } void CORE_zlange_max_quark(Quark *quark) diff --git a/runtime/quark/codelets/codelet_zlanhe.c b/runtime/quark/codelets/codelet_zlanhe.c index 058990df3..d8b180408 100644 --- a/runtime/quark/codelets/codelet_zlanhe.c +++ b/runtime/quark/codelets/codelet_zlanhe.c @@ -37,21 +37,23 @@ void CORE_zlanhe_quark(Quark *quark) TCORE_zlanhe( norm, uplo, N, tileA, work, tileNorm->mat ); } -void INSERT_TASK_zlanhe(const RUNTIME_option_t *options, - cham_normtype_t norm, cham_uplo_t uplo, int N, int NB, - const CHAM_desc_t *A, int Am, int An, - const CHAM_desc_t *B, int Bm, int Bn) +void INSERT_TASK_zlanhe( const RUNTIME_option_t *options, + cham_normtype_t norm, cham_uplo_t uplo, int n, int nb, + const CHAM_desc_t *A, int Am, int An, + const CHAM_desc_t *B, int Bm, int Bn ) { quark_option_t *opt = (quark_option_t*)(options->schedopt); DAG_CORE_LANHE; - int szeW = chameleon_max( 1, N ); + int szeW = chameleon_max( 1, n ); QUARK_Insert_Task( opt->quark, CORE_zlanhe_quark, (Quark_Task_Flags*)opt, sizeof(int), &norm, VALUE, sizeof(int), &uplo, VALUE, - sizeof(int), &N, VALUE, + sizeof(int), &n, VALUE, sizeof(void*), RTBLKADDR(A, CHAMELEON_Complex64_t, Am, An), INPUT, sizeof(double)*szeW, NULL, SCRATCH, sizeof(void*), RTBLKADDR(B, double, Bm, Bn), OUTPUT, 0); + + (void)nb; } diff --git a/runtime/quark/codelets/codelet_zlansy.c b/runtime/quark/codelets/codelet_zlansy.c index adda052ac..9c75b9792 100644 --- a/runtime/quark/codelets/codelet_zlansy.c +++ b/runtime/quark/codelets/codelet_zlansy.c @@ -37,21 +37,23 @@ void CORE_zlansy_quark(Quark *quark) TCORE_zlansy( norm, uplo, N, tileA, work, tileNorm->mat ); } -void INSERT_TASK_zlansy(const RUNTIME_option_t *options, - cham_normtype_t norm, cham_uplo_t uplo, int N, int NB, - const CHAM_desc_t *A, int Am, int An, - const CHAM_desc_t *B, int Bm, int Bn) +void INSERT_TASK_zlansy( const RUNTIME_option_t *options, + cham_normtype_t norm, cham_uplo_t uplo, int n, int nb, + const CHAM_desc_t *A, int Am, int An, + const CHAM_desc_t *B, int Bm, int Bn) { quark_option_t *opt = (quark_option_t*)(options->schedopt); DAG_CORE_LANSY; - int szeW = chameleon_max( 1, N ); + int szeW = chameleon_max( 1, n ); QUARK_Insert_Task( opt->quark, CORE_zlansy_quark, (Quark_Task_Flags*)opt, sizeof(int), &norm, VALUE, sizeof(int), &uplo, VALUE, - sizeof(int), &N, VALUE, + sizeof(int), &n, VALUE, sizeof(void*), RTBLKADDR(A, CHAMELEON_Complex64_t, Am, An), INPUT, sizeof(double)*szeW, NULL, SCRATCH, sizeof(void*), RTBLKADDR(B, double, Bm, Bn), OUTPUT, 0); + + (void)nb; } diff --git a/runtime/quark/codelets/codelet_zlantr.c b/runtime/quark/codelets/codelet_zlantr.c index dfc3855e4..38a3a5f89 100644 --- a/runtime/quark/codelets/codelet_zlantr.c +++ b/runtime/quark/codelets/codelet_zlantr.c @@ -25,7 +25,9 @@ void CORE_zlantr_quark(Quark *quark) { CHAM_tile_t *tileNorm; - cham_normtype_t norm, uplo, diag; + cham_normtype_t norm; + cham_uplo_t uplo; + cham_diag_t diag; int M; int N; CHAM_tile_t *tileA; @@ -35,24 +37,26 @@ void CORE_zlantr_quark(Quark *quark) TCORE_zlantr( norm, uplo, diag, M, N, tileA, work, tileNorm->mat ); } -void INSERT_TASK_zlantr(const RUNTIME_option_t *options, - cham_normtype_t norm, cham_uplo_t uplo, cham_diag_t diag, - int M, int N, int NB, - const CHAM_desc_t *A, int Am, int An, - const CHAM_desc_t *B, int Bm, int Bn) +void INSERT_TASK_zlantr( const RUNTIME_option_t *options, + cham_normtype_t norm, cham_uplo_t uplo, cham_diag_t diag, + int m, int n, int nb, + const CHAM_desc_t *A, int Am, int An, + const CHAM_desc_t *B, int Bm, int Bn ) { quark_option_t *opt = (quark_option_t*)(options->schedopt); DAG_CORE_LANTR; - int szeW = chameleon_max( 1, N ); + int szeW = chameleon_max( 1, n ); QUARK_Insert_Task( opt->quark, CORE_zlantr_quark, (Quark_Task_Flags*)opt, sizeof(int), &norm, VALUE, sizeof(int), &uplo, VALUE, sizeof(int), &diag, VALUE, - sizeof(int), &M, VALUE, - sizeof(int), &N, VALUE, + sizeof(int), &m, VALUE, + sizeof(int), &n, VALUE, sizeof(void*), RTBLKADDR(A, CHAMELEON_Complex64_t, Am, An), INPUT, sizeof(double)*szeW, NULL, SCRATCH, sizeof(void*), RTBLKADDR(B, double, Bm, Bn), OUTPUT, 0); + + (void)nb; } diff --git a/runtime/quark/codelets/codelet_zlascal.c b/runtime/quark/codelets/codelet_zlascal.c index a031b57b4..93565a173 100644 --- a/runtime/quark/codelets/codelet_zlascal.c +++ b/runtime/quark/codelets/codelet_zlascal.c @@ -60,4 +60,6 @@ void INSERT_TASK_zlascal(const RUNTIME_option_t *options, sizeof(CHAMELEON_Complex64_t), &alpha, VALUE, sizeof(void*), RTBLKADDR(A, CHAMELEON_Complex64_t, Am, An), INOUT, 0); + + (void)nb; } diff --git a/runtime/quark/codelets/codelet_zlatro.c b/runtime/quark/codelets/codelet_zlatro.c index f5b375baf..5a3e30887 100644 --- a/runtime/quark/codelets/codelet_zlatro.c +++ b/runtime/quark/codelets/codelet_zlatro.c @@ -37,7 +37,7 @@ void CORE_zlatro_quark(Quark *quark) void INSERT_TASK_zlatro(const RUNTIME_option_t *options, cham_uplo_t uplo, cham_trans_t trans, - int m, int n, int mb, + int m, int n, int nb, const CHAM_desc_t *A, int Am, int An, const CHAM_desc_t *B, int Bm, int Bn) { @@ -51,4 +51,6 @@ void INSERT_TASK_zlatro(const RUNTIME_option_t *options, sizeof(void*), RTBLKADDR(A, CHAMELEON_Complex64_t, Am, An), INPUT, sizeof(void*), RTBLKADDR(B, CHAMELEON_Complex64_t, Bm, Bn), OUTPUT, 0); + + (void)nb; } diff --git a/runtime/quark/codelets/codelet_zlauum.c b/runtime/quark/codelets/codelet_zlauum.c index 2367de04c..01ee1558f 100644 --- a/runtime/quark/codelets/codelet_zlauum.c +++ b/runtime/quark/codelets/codelet_zlauum.c @@ -36,15 +36,17 @@ void CORE_zlauum_quark(Quark *quark) TCORE_zlauum(uplo, N, tileA); } -void INSERT_TASK_zlauum(const RUNTIME_option_t *options, - cham_uplo_t uplo, int n, int nb, - const CHAM_desc_t *A, int Am, int An) +void INSERT_TASK_zlauum( const RUNTIME_option_t *options, + cham_uplo_t uplo, int n, int nb, + const CHAM_desc_t *A, int Am, int An ) { quark_option_t *opt = (quark_option_t*)(options->schedopt); DAG_CORE_LAUUM; QUARK_Insert_Task(opt->quark, CORE_zlauum_quark, (Quark_Task_Flags*)opt, sizeof(int), &uplo, VALUE, - sizeof(int), &n, VALUE, + sizeof(int), &n, VALUE, sizeof(void*), RTBLKADDR(A, CHAMELEON_Complex64_t, Am, An), INOUT, 0); + + (void)nb; } diff --git a/runtime/quark/codelets/codelet_zplssq.c b/runtime/quark/codelets/codelet_zplssq.c index 7403980c3..c6c10eb70 100644 --- a/runtime/quark/codelets/codelet_zplssq.c +++ b/runtime/quark/codelets/codelet_zplssq.c @@ -18,7 +18,6 @@ * @precisions normal z -> c d s * */ -#include <math.h> #include "chameleon_quark.h" #include "chameleon/tasks_z.h" #include "coreblas/coreblas_ztile.h" diff --git a/runtime/quark/codelets/codelet_zpotrf.c b/runtime/quark/codelets/codelet_zpotrf.c index d8a3691c7..a27ddd5ab 100644 --- a/runtime/quark/codelets/codelet_zpotrf.c +++ b/runtime/quark/codelets/codelet_zpotrf.c @@ -59,4 +59,6 @@ void INSERT_TASK_zpotrf(const RUNTIME_option_t *options, sizeof(RUNTIME_request_t*), &(options->request), VALUE, sizeof(int), &iinfo, VALUE, 0); + + (void)nb; } diff --git a/runtime/quark/codelets/codelet_zsytrf_nopiv.c b/runtime/quark/codelets/codelet_zsytrf_nopiv.c index 4a5b2c1ca..1eb683e43 100644 --- a/runtime/quark/codelets/codelet_zsytrf_nopiv.c +++ b/runtime/quark/codelets/codelet_zsytrf_nopiv.c @@ -59,4 +59,6 @@ void INSERT_TASK_zsytrf_nopiv(const RUNTIME_option_t *options, sizeof(RUNTIME_request_t*), &(options->request), VALUE, sizeof(int), &iinfo, VALUE, 0); + + (void)nb; } diff --git a/runtime/quark/codelets/codelet_ztrmm.c b/runtime/quark/codelets/codelet_ztrmm.c index 53b30d587..c424a27d8 100644 --- a/runtime/quark/codelets/codelet_ztrmm.c +++ b/runtime/quark/codelets/codelet_ztrmm.c @@ -70,4 +70,6 @@ void INSERT_TASK_ztrmm( const RUNTIME_option_t *options, sizeof(void*), RTBLKADDR(A, CHAMELEON_Complex64_t, Am, An), INPUT, sizeof(void*), RTBLKADDR(B, CHAMELEON_Complex64_t, Bm, Bn), INOUT, 0); + + (void)nb; } diff --git a/runtime/quark/codelets/codelet_ztrsm.c b/runtime/quark/codelets/codelet_ztrsm.c index d630db744..57712e542 100644 --- a/runtime/quark/codelets/codelet_ztrsm.c +++ b/runtime/quark/codelets/codelet_ztrsm.c @@ -65,4 +65,6 @@ void INSERT_TASK_ztrsm(const RUNTIME_option_t *options, sizeof(void*), RTBLKADDR(A, CHAMELEON_Complex64_t, Am, An), INPUT, sizeof(void*), RTBLKADDR(B, CHAMELEON_Complex64_t, Bm, Bn), INOUT, 0); + + (void)nb; } diff --git a/runtime/quark/codelets/codelet_ztrtri.c b/runtime/quark/codelets/codelet_ztrtri.c index d1ed47420..fb54394e4 100644 --- a/runtime/quark/codelets/codelet_ztrtri.c +++ b/runtime/quark/codelets/codelet_ztrtri.c @@ -62,4 +62,6 @@ void INSERT_TASK_ztrtri(const RUNTIME_option_t *options, sizeof(RUNTIME_request_t*), &(options->request), VALUE, sizeof(int), &iinfo, VALUE, 0); + + (void)nb; } diff --git a/runtime/quark/control/runtime_async.c b/runtime/quark/control/runtime_async.c index b21ebfa87..5324c1c08 100644 --- a/runtime/quark/control/runtime_async.c +++ b/runtime/quark/control/runtime_async.c @@ -20,7 +20,6 @@ * @date 2020-04-22 * */ -#include <stdlib.h> #include "chameleon_quark.h" /** @@ -111,4 +110,4 @@ int RUNTIME_request_set( CHAM_context_t *chamctxt, (void)param; (void)value; return CHAMELEON_SUCCESS; -} \ No newline at end of file +} diff --git a/runtime/quark/control/runtime_context.c b/runtime/quark/control/runtime_context.c index 713672d6a..b95ccde56 100644 --- a/runtime/quark/control/runtime_context.c +++ b/runtime/quark/control/runtime_context.c @@ -19,7 +19,6 @@ * @date 2020-03-03 * */ -#include <stdlib.h> #include "chameleon_quark.h" /** diff --git a/runtime/quark/control/runtime_control.c b/runtime/quark/control/runtime_control.c index 21ba5cc4e..36d634ab3 100644 --- a/runtime/quark/control/runtime_control.c +++ b/runtime/quark/control/runtime_control.c @@ -20,8 +20,6 @@ * @date 2020-04-22 * */ -#include <stdio.h> -#include <stdlib.h> #include "chameleon_quark.h" /** diff --git a/runtime/quark/control/runtime_descriptor.c b/runtime/quark/control/runtime_descriptor.c index b843f272d..78859a86f 100644 --- a/runtime/quark/control/runtime_descriptor.c +++ b/runtime/quark/control/runtime_descriptor.c @@ -20,7 +20,6 @@ * @date 2020-03-03 * */ -#include <stdlib.h> #include "chameleon_quark.h" void RUNTIME_comm_set_tag_sizes( int user_tag_width, diff --git a/runtime/quark/control/runtime_options.c b/runtime/quark/control/runtime_options.c index b32061bac..bab33ac07 100644 --- a/runtime/quark/control/runtime_options.c +++ b/runtime/quark/control/runtime_options.c @@ -19,8 +19,6 @@ * @date 2020-03-03 * */ -#include <stdio.h> -#include <stdlib.h> #include "chameleon_quark.h" void RUNTIME_options_init( RUNTIME_option_t *options, CHAM_context_t *chamctxt, -- GitLab