diff --git a/testing/testing_zgemm.c b/testing/testing_zgemm.c
index 666dde7aa51d3768118ad19091a76f18fa2e6a9b..9d71f589c944e50691a1be8dc9c70b14b71590fa 100644
--- a/testing/testing_zgemm.c
+++ b/testing/testing_zgemm.c
@@ -140,7 +140,9 @@ testing_zgemm_std( run_arg_list_t *args, int check )
     int        hres      = 0;
 
     /* Read arguments */
+#if !defined(CHAMELEON_TESTINGS_VENDOR)
     int          api    = parameters_getvalue_int( "api" );
+#endif
     int          nb     = run_arg_get_nb( args );
     cham_trans_t transA = run_arg_get_trans( args, "transA", ChamNoTrans );
     cham_trans_t transB = run_arg_get_trans( args, "transB", ChamNoTrans );
@@ -235,7 +237,6 @@ testing_zgemm_std( run_arg_list_t *args, int check )
     free( B );
     free( C );
 
-    (void)api;
     (void)check;
     return hres;
 }
diff --git a/testing/testing_zgetrf.c b/testing/testing_zgetrf.c
index fca6676030b7aa567965b985d4274369c3145ae2..1db2d0030f335ea521bc12bf22ae37a830c920cc 100644
--- a/testing/testing_zgetrf.c
+++ b/testing/testing_zgetrf.c
@@ -166,7 +166,9 @@ testing_zgetrf_std( run_arg_list_t *args, int check )
     int        hres      = 0;
 
     /* Read arguments */
+#if !defined(CHAMELEON_TESTINGS_VENDOR)
     int         api   = parameters_getvalue_int( "api" );
+#endif
     int         nb    = run_arg_get_nb( args );
     int         N     = run_arg_get_int( args, "N", 1000 );
     int         M     = run_arg_get_int( args, "M", N );
diff --git a/testing/testing_zhemm.c b/testing/testing_zhemm.c
index 642cf04b9243338c3ff2978a19b4a6d4e021d6b2..35a69847e3bb682ebe645e0a9aecadb88062b196 100644
--- a/testing/testing_zhemm.c
+++ b/testing/testing_zhemm.c
@@ -133,7 +133,9 @@ testing_zhemm_std( run_arg_list_t *args, int check )
     int        hres      = 0;
 
     /* Read arguments */
+#if !defined(CHAMELEON_TESTINGS_VENDOR)
     int                   api   = parameters_getvalue_int( "api" );
+#endif
     int                   nb    = run_arg_get_nb( args );
     cham_side_t           side  = run_arg_get_side( args, "side", ChamLeft );
     cham_uplo_t           uplo  = run_arg_get_uplo( args, "uplo", ChamUpper );
diff --git a/testing/testing_zher2k.c b/testing/testing_zher2k.c
index f0d9b890518bcebdecfd729f6d86d9533ff67200..5fd3a40db8153e23c23d5e55a8579e057e7173bc 100644
--- a/testing/testing_zher2k.c
+++ b/testing/testing_zher2k.c
@@ -126,7 +126,9 @@ testing_zher2k_std( run_arg_list_t *args, int check )
     int        hres      = 0;
 
     /* Read arguments */
+#if !defined(CHAMELEON_TESTINGS_VENDOR)
     int                   api   = parameters_getvalue_int( "api" );
+#endif
     int                   nb    = run_arg_get_nb( args );
     cham_trans_t          trans = run_arg_get_trans( args, "trans", ChamNoTrans );
     cham_uplo_t           uplo  = run_arg_get_uplo( args, "uplo", ChamUpper );
diff --git a/testing/testing_zherk.c b/testing/testing_zherk.c
index f6b1be86db3001e443942cfbeb60ebf2f6d6a396..f84e20b8095832b1d2a9aeb715194e9234276b05 100644
--- a/testing/testing_zherk.c
+++ b/testing/testing_zherk.c
@@ -120,7 +120,9 @@ testing_zherk_std( run_arg_list_t *args, int check )
     int        hres      = 0;
 
     /* Read arguments */
+#if !defined(CHAMELEON_TESTINGS_VENDOR)
     int          api   = parameters_getvalue_int( "api" );
+#endif
     int          nb    = run_arg_get_nb( args );
     cham_trans_t trans = run_arg_get_trans( args, "trans", ChamNoTrans );
     cham_uplo_t  uplo  = run_arg_get_uplo( args, "uplo", ChamUpper );
diff --git a/testing/testing_zlange.c b/testing/testing_zlange.c
index 710e02181fd6ed62a81e8b6860c1d0cac580ab15..8daf2aae3ace1423a6efb2c67b6a48f0606079ba 100644
--- a/testing/testing_zlange.c
+++ b/testing/testing_zlange.c
@@ -121,7 +121,9 @@ testing_zlange_std( run_arg_list_t *args, int check )
     int        hres      = 0;
 
     /* Read arguments */
+#if !defined(CHAMELEON_TESTINGS_VENDOR)
     int             api       = parameters_getvalue_int( "api" );
+#endif
     int             nb        = run_arg_get_nb( args );
     cham_normtype_t norm_type = run_arg_get_ntype( args, "norm", ChamMaxNorm );
     int             N         = run_arg_get_int( args, "N", 1000 );
diff --git a/testing/testing_zlanhe.c b/testing/testing_zlanhe.c
index 21ff4406d1d863a302b4dd660f058eeaadce0a51..fd457fabbea81a57a081389c35a6b927f81f9003 100644
--- a/testing/testing_zlanhe.c
+++ b/testing/testing_zlanhe.c
@@ -119,7 +119,9 @@ testing_zlanhe_std( run_arg_list_t *args, int check )
     int        hres      = 0;
 
     /* Read arguments */
+#if !defined(CHAMELEON_TESTINGS_VENDOR)
     int             api       = parameters_getvalue_int( "api" );
+#endif
     int             nb        = run_arg_get_nb( args );
     cham_normtype_t norm_type = run_arg_get_ntype( args, "norm", ChamMaxNorm );
     cham_uplo_t     uplo      = run_arg_get_uplo( args, "uplo", ChamUpper );
diff --git a/testing/testing_zlansy.c b/testing/testing_zlansy.c
index b0db956392833f406f6cfd055146792138f415c6..dc9526aa3d986685c1dabb625b0deb06e6f8d08f 100644
--- a/testing/testing_zlansy.c
+++ b/testing/testing_zlansy.c
@@ -119,7 +119,9 @@ testing_zlansy_std( run_arg_list_t *args, int check )
     int        hres      = 0;
 
     /* Read arguments */
+#if !defined(CHAMELEON_TESTINGS_VENDOR)
     int                   api       = parameters_getvalue_int( "api" );
+#endif
     int                   nb        = run_arg_get_nb( args );
     cham_normtype_t       norm_type = run_arg_get_ntype( args, "norm", ChamMaxNorm );
     cham_uplo_t           uplo      = run_arg_get_uplo( args, "uplo", ChamUpper );
diff --git a/testing/testing_zlantr.c b/testing/testing_zlantr.c
index e41eb2bcda99e03a0c5a4cd64af42724a5ece284..02f893a658d2f820ab3ba2f7b998576ad083bf19 100644
--- a/testing/testing_zlantr.c
+++ b/testing/testing_zlantr.c
@@ -143,7 +143,9 @@ testing_zlantr_std( run_arg_list_t *args, int check )
     int        hres      = 0;
 
     /* Read arguments */
+#if !defined(CHAMELEON_TESTINGS_VENDOR)
     int             api       = parameters_getvalue_int( "api" );
+#endif
     int             nb        = run_arg_get_nb( args );
     cham_normtype_t norm_type = run_arg_get_ntype( args, "norm", ChamMaxNorm );
     cham_uplo_t     uplo      = run_arg_get_uplo( args, "uplo", ChamUpper );
diff --git a/testing/testing_zlauum.c b/testing/testing_zlauum.c
index 401b1f6b57cd36f840f5ef428136d1e570087135..fe064eaf75835a9533cb4c08a6b951247b72be55 100644
--- a/testing/testing_zlauum.c
+++ b/testing/testing_zlauum.c
@@ -93,7 +93,9 @@ testing_zlauum_std( run_arg_list_t *args, int check )
     int        hres      = 0;
 
     /* Read arguments */
+#if !defined(CHAMELEON_TESTINGS_VENDOR)
     int         api   = parameters_getvalue_int( "api" );
+#endif
     int         nb    = run_arg_get_nb( args );
     cham_uplo_t uplo  = run_arg_get_uplo( args, "uplo", ChamUpper );
     int         N     = run_arg_get_int( args, "N", 1000 );
diff --git a/testing/testing_zposv.c b/testing/testing_zposv.c
index 1ec3a85f5809fc1826243c3a54cf0067e8789f26..c2a739a9d263cc1c95e4a949bf93ac9718be443c 100644
--- a/testing/testing_zposv.c
+++ b/testing/testing_zposv.c
@@ -115,7 +115,9 @@ testing_zposv_std( run_arg_list_t *args, int check )
     int        hres      = 0;
 
     /* Read arguments */
+#if !defined(CHAMELEON_TESTINGS_VENDOR)
     int         api   = parameters_getvalue_int( "api" );
+#endif
     int         nb    = run_arg_get_nb( args );
     cham_uplo_t uplo  = run_arg_get_uplo( args, "uplo", ChamUpper );
     int         N     = run_arg_get_int( args, "N", 1000 );
diff --git a/testing/testing_zpotrf.c b/testing/testing_zpotrf.c
index 264fb2711cbe1b8086dd34cda09d7699c0bbea18..971de441ab688276d8b1ce4915a7ebc9ae584d08 100644
--- a/testing/testing_zpotrf.c
+++ b/testing/testing_zpotrf.c
@@ -90,7 +90,9 @@ testing_zpotrf_std( run_arg_list_t *args, int check )
     int        hres      = 0;
 
     /* Read arguments */
+#if !defined(CHAMELEON_TESTINGS_VENDOR)
     int         api   = parameters_getvalue_int( "api" );
+#endif
     int         nb    = run_arg_get_nb( args );
     cham_uplo_t uplo  = run_arg_get_uplo( args, "uplo", ChamUpper );
     int         N     = run_arg_get_int( args, "N", 1000 );
diff --git a/testing/testing_zpotri.c b/testing/testing_zpotri.c
index 91ce688f92cd64c4131481700eb6074a890d1094..bddbef90abcf082c08a4b45e43141786e0ffdc2f 100644
--- a/testing/testing_zpotri.c
+++ b/testing/testing_zpotri.c
@@ -93,7 +93,9 @@ testing_zpotri_std( run_arg_list_t *args, int check )
     int        hres      = 0;
 
     /* Read arguments */
+#if !defined(CHAMELEON_TESTINGS_VENDOR)
     int         api   = parameters_getvalue_int( "api" );
+#endif
     int         nb    = run_arg_get_nb( args );
     cham_uplo_t uplo  = run_arg_get_uplo( args, "uplo", ChamUpper );
     int         N     = run_arg_get_int( args, "N", 1000 );
diff --git a/testing/testing_zpotrs.c b/testing/testing_zpotrs.c
index 718e3da1d66b61f9868b1f6bbf8f276dd71d8d9b..bc87dbe7a9c4d7df833401602ab5541e76f1aee9 100644
--- a/testing/testing_zpotrs.c
+++ b/testing/testing_zpotrs.c
@@ -105,7 +105,9 @@ testing_zpotrs_std( run_arg_list_t *args, int check )
     int        hres      = 0;
 
     /* Read arguments */
+#if !defined(CHAMELEON_TESTINGS_VENDOR)
     int         api   = parameters_getvalue_int( "api" );
+#endif
     int         nb    = run_arg_get_nb( args );
     cham_uplo_t uplo  = run_arg_get_uplo( args, "uplo", ChamUpper );
     int         N     = run_arg_get_int( args, "N", 1000 );
diff --git a/testing/testing_zsymm.c b/testing/testing_zsymm.c
index 56d6b331f034e5d19c0eef55f55f7ec89c36b53e..527be00a14cff90eb38cfd84d99c8ede63fde9d2 100644
--- a/testing/testing_zsymm.c
+++ b/testing/testing_zsymm.c
@@ -133,7 +133,9 @@ testing_zsymm_std( run_arg_list_t *args, int check )
     int        hres      = 0;
 
     /* Read arguments */
+#if !defined(CHAMELEON_TESTINGS_VENDOR)
     int                   api   = parameters_getvalue_int( "api" );
+#endif
     int                   nb    = run_arg_get_nb( args );
     cham_side_t           side  = run_arg_get_side( args, "side", ChamLeft );
     cham_uplo_t           uplo  = run_arg_get_uplo( args, "uplo", ChamUpper );
diff --git a/testing/testing_zsyr2k.c b/testing/testing_zsyr2k.c
index e7a3506a8bd56bad49fa694646b190c866a15634..d6cd91f50ba1839d77ef11c0614ec486d7ef0fa0 100644
--- a/testing/testing_zsyr2k.c
+++ b/testing/testing_zsyr2k.c
@@ -126,7 +126,9 @@ testing_zsyr2k_std( run_arg_list_t *args, int check )
     int        hres      = 0;
 
     /* Read arguments */
+#if !defined(CHAMELEON_TESTINGS_VENDOR)
     int                   api   = parameters_getvalue_int( "api" );
+#endif
     int                   nb    = run_arg_get_nb( args );
     cham_trans_t          trans = run_arg_get_trans( args, "trans", ChamNoTrans );
     cham_uplo_t           uplo  = run_arg_get_uplo( args, "uplo", ChamUpper );
diff --git a/testing/testing_zsyrk.c b/testing/testing_zsyrk.c
index cede56702c85b9835dd8bdf96be222a1fa7048e5..4517f1fa04f9506e9ce4ac16ca9290ca1c8c19e6 100644
--- a/testing/testing_zsyrk.c
+++ b/testing/testing_zsyrk.c
@@ -120,7 +120,9 @@ testing_zsyrk_std( run_arg_list_t *args, int check )
     int        hres      = 0;
 
     /* Read arguments */
+#if !defined(CHAMELEON_TESTINGS_VENDOR)
     int          api   = parameters_getvalue_int( "api" );
+#endif
     int          nb    = run_arg_get_nb( args );
     cham_trans_t trans = run_arg_get_trans( args, "trans", ChamNoTrans );
     cham_uplo_t  uplo  = run_arg_get_uplo( args, "uplo", ChamUpper );
diff --git a/testing/testing_ztrmm.c b/testing/testing_ztrmm.c
index 96ad81fe73798341333773dcf78391cbe8a4af32..3b69d3802183ec6bff861040724964afa8aed5ee 100644
--- a/testing/testing_ztrmm.c
+++ b/testing/testing_ztrmm.c
@@ -114,7 +114,9 @@ testing_ztrmm_std( run_arg_list_t *args, int check )
     int        hres      = 0;
 
     /* Read arguments */
+#if !defined(CHAMELEON_TESTINGS_VENDOR)
     int                   api   = parameters_getvalue_int( "api" );
+#endif
     int                   nb    = run_arg_get_nb( args );
     cham_trans_t          trans = run_arg_get_trans( args, "trans", ChamNoTrans );
     cham_side_t           side  = run_arg_get_side( args, "side", ChamLeft );
diff --git a/testing/testing_ztrsm.c b/testing/testing_ztrsm.c
index 52cfd4017ff487a039f7036a7471f29faca53063..aa7ef63535a0ba4ff4b47342d7ab83abf2db846a 100644
--- a/testing/testing_ztrsm.c
+++ b/testing/testing_ztrsm.c
@@ -109,7 +109,9 @@ testing_ztrsm_std( run_arg_list_t *args, int check )
     int        hres      = 0;
 
     /* Read arguments */
+#if !defined(CHAMELEON_TESTINGS_VENDOR)
     int                   api   = parameters_getvalue_int( "api" );
+#endif
     int                   nb    = run_arg_get_nb( args );
     cham_trans_t          trans = run_arg_get_trans( args, "trans", ChamNoTrans );
     cham_side_t           side  = run_arg_get_side( args, "side", ChamLeft );