Commit 2edadb31 authored by Mathieu Faverge's avatar Mathieu Faverge

Cleaup options

parent a7b287bb
......@@ -223,7 +223,7 @@ void libhqr_walk_stepk( const libhqr_tree_t *qrtree, int k, int *tiles );
* @name Drawing functions
* @{
*/
void libhqr_print_dag( const libhqr_tree_t *qrtree,
void libhqr_print_dot( const libhqr_tree_t *qrtree,
const char *filename );
void libhqr_print_svg( const libhqr_tree_t *qrtree,
const char *filename );
......
......@@ -25,6 +25,7 @@ set(TESTINGS
testing_svd.c
testing_systolic.c
testing_tshqr.c
testing_print.c
)
foreach (_file ${TESTINGS})
......@@ -42,10 +43,11 @@ foreach (_file ${TESTINGS})
endforeach()
add_test( draw_hqr ./draw_hqr -M 27 -N 7 -P 2)
add_test( draw_systolic ./draw_systolic -M 27 -N 7 -P 3)
add_test( draw_hqr ./draw_hqr -M 27 -N 7 -P 2 -d)
add_test( draw_systolic ./draw_systolic -M 27 -N 7 -P 3 -h 3 -l 2 )
add_test( draw_tshqr ./draw_tshqr -M 27 -P 2)
add_test( test_hqr ./testing_hqr -X )
add_test( test_svd ./testing_svd -X )
add_test( test_systolic ./testing_systolic -X )
add_test( test_tshqr ./testing_tshqr -X )
add_test( test_print ./testing_print -M 27 -N 7 -P 3 )
......@@ -56,7 +56,7 @@ print_usage(void)
);
}
#define GETOPT_STRING "M:N:P:Q:c:a:p:d::rl:L:xXv::h"
#define GETOPT_STRING "M:N:P:Q:c:a:p:drl:L:xXv::h"
#if defined(LIBHQR_HAVE_GETOPT_LONG)
static struct option long_options[] =
{
......@@ -64,34 +64,22 @@ static struct option long_options[] =
{"M", required_argument, 0, 'M'},
{"N", required_argument, 0, 'N'},
{"grid-rows", required_argument, 0, 'P'},
{"P", required_argument, 0, 'P'},
{"grid-cols", required_argument, 0, 'Q'},
{"Q", required_argument, 0, 'Q'},
{"c", required_argument, 0, 'c'},
{"cores", required_argument, 0, 'c'},
/* HQR options */
{"a", required_argument, 0, 'a'},
{"qr_a", required_argument, 0, 'a'},
{"p", required_argument, 0, 'p'},
{"qr_p", required_argument, 0, 'p'},
{"d", optional_argument, 0, 'd'},
{"domino", optional_argument, 0, 'd'},
{"r", no_argument, 0, 'r'},
{"domino", no_argument, 0, 'd'},
{"tsrr", no_argument, 0, 'r'},
{"l", required_argument, 0, 'l'},
{"treel", required_argument, 0, 'l'},
{"L", required_argument, 0, 'L'},
{"treeh", required_argument, 0, 'L'},
/* Auxiliary options */
{"check", no_argument, 0, 'x'},
{"x", no_argument, 0, 'x'},
{"X", no_argument, 0, 'X'},
{"verbose", optional_argument, 0, 'v'},
{"v", optional_argument, 0, 'v'},
{"help", no_argument, 0, 'h'},
{"h", no_argument, 0, 'h'},
{0, 0, 0, 0}
};
#endif /* defined(LIBHQR_HAVE_GETOPT_LONG) */
......@@ -176,7 +164,7 @@ parse_arguments(int *_argc, char ***_argv, int *iparam)
iparam[IPARAM_QR_HLVL_SZE] = atoi(optarg);
break;
case 'd':
iparam[IPARAM_QR_DOMINO] = atoi(optarg) ? 1 : 0;
iparam[IPARAM_QR_DOMINO] = 1;
break;
case 'r':
iparam[IPARAM_QR_TSRR] = 1;
......
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