Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 63807de3 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Merge branch 'bound' into 'master'

Remove -bounddeps/-bounddepsprio and document -bound

See merge request !58
parents 363bf86f 12481e81
No related branches found
No related tags found
1 merge request!58Remove -bounddeps/-bounddepsprio and document -bound
......@@ -109,6 +109,8 @@ factorization. X is the size of each subdomain (default: @option{0})
@option{nodag})
@item @option{--[no]inv}: check on inverse (default: @option{noinv})
@item @option{--nocpu}: all GPU kernels are exclusively executed on GPUs
@item @option{--ooc}: Enable out-of-core (available only with StarPU)
@item @option{--bound}: Compare result to area bound (available only with StarPU)
(default: @option{0})
@end itemize
......
......@@ -127,8 +127,6 @@ enum iparam_examples {
IPARAM_PARALLEL_TASKS,
IPARAM_NO_CPU,
IPARAM_BOUND,
IPARAM_BOUNDDEPS,
IPARAM_BOUNDDEPSPRIO,
/* End */
IPARAM_SIZEOF
};
......@@ -191,8 +189,6 @@ static void init_iparam(int iparam[IPARAM_SIZEOF]){
iparam[IPARAM_PARALLEL_TASKS] = 0;
iparam[IPARAM_NO_CPU ] = 0;
iparam[IPARAM_BOUND ] = 0;
iparam[IPARAM_BOUNDDEPS ] = 0;
iparam[IPARAM_BOUNDDEPSPRIO ] = 0;
}
static void read_args(int argc, char *argv[], int *iparam){
......
......@@ -201,33 +201,15 @@ Test(int64_t n, int *iparam) {
gflops = flops / t[iter];
#if defined (CHAMELEON_SCHED_STARPU)
/* TODO: create chameleon interface encapsulating this instead */
if (iparam[IPARAM_BOUND])
{
double upper_gflops = 0.0;
double tmin = 0.0;
double integer_tmin = 0.0;
#if 0
if (iparam[IPARAM_BOUNDDEPS]) {
FILE *out = fopen("bounddeps.pl", "w");
starpu_bound_print_lp(out);
fclose(out);
out = fopen("bound.dot", "w");
starpu_bound_print_dot(out);
fclose(out);
} else {
FILE *out = fopen("bound.pl", "w");
starpu_bound_print_lp(out);
fclose(out);
#else
{
#endif
starpu_bound_compute(&tmin, &integer_tmin, 0);
upper_gflops = (flops / (tmin / 1000.0));
sumgf_upper += upper_gflops;
}
#if 0
}
#endif
starpu_bound_compute(&tmin, &integer_tmin, 0);
upper_gflops = (flops / (tmin / 1000.0));
sumgf_upper += upper_gflops;
}
#endif
sumt += t[iter];
......@@ -241,7 +223,7 @@ Test(int64_t n, int *iparam) {
if ( MORSE_My_Mpi_Rank() == 0) {
printf( "%9.3f %9.2f +-%7.2f ", sumt/niter, gflops, sd);
if (iparam[IPARAM_BOUND] && !iparam[IPARAM_BOUNDDEPS])
if (iparam[IPARAM_BOUND])
printf(" %9.2f", sumgf_upper/niter);
if ( iparam[IPARAM_PEAK] )
......@@ -408,9 +390,7 @@ show_help(char *prog_name) {
" -o, --ooc Enable out-of-core (available only with StarPU)\n"
" -G, --gemm3m Use gemm3m complex method\n"
//" --peak ?\n"todo
//" --bound ?\n"todo
//" --bounddeps ?\n"todo
//" --bounddepsprio ?\n"todo
" --bound Compare result to area bound\n"
"\n");
}
......@@ -458,7 +438,7 @@ print_header(char *prog_name, int * iparam) {
return;
}
#define GETOPT_STRING "ht:g:P:8M:m:N:n:K:k:b:i:x:X:1:WwcCT2dpa:l:L:D9:3soG4567"
#define GETOPT_STRING "ht:g:P:8M:m:N:n:K:k:b:i:x:X:1:WwcCT2dpa:l:L:D9:3soG45"
#if defined(CHAMELEON_HAVE_GETOPT_LONG)
static struct option long_options[] =
{
......@@ -506,8 +486,6 @@ static struct option long_options[] =
{"gemm3m", no_argument, 0, 'G'},
{"peak", no_argument, 0, '4'},
{"bound", no_argument, 0, '5'},
{"bounddeps", no_argument, 0, '6'},
{"bounddepsprio", no_argument, 0, '7'},
{0, 0, 0, 0}
};
#endif /* defined(CHAMELEON_HAVE_GETOPT_LONG) */
......@@ -637,11 +615,6 @@ parse_arguments(int *_argc, char ***_argv, int *iparam, int *start, int *stop, i
case 'G' : iparam[IPARAM_GEMM3M ] = 1; break;
case '4' : iparam[IPARAM_PEAK ] = 1; break;
case '5' : iparam[IPARAM_BOUND ] = 1; break;
case '6' : iparam[IPARAM_BOUND ] = 1;
iparam[IPARAM_BOUNDDEPS ] = 1; break;
case '7' : iparam[IPARAM_BOUND ] = 1;
iparam[IPARAM_BOUNDDEPS ] = 1;
iparam[IPARAM_BOUNDDEPSPRIO ] = 1; break;
case 'h' :
case '?' :
show_help(argv[0]); exit(EXIT_FAILURE);
......
......@@ -59,8 +59,6 @@ enum iparam_timing {
IPARAM_PARALLEL_TASKS,
IPARAM_NO_CPU,
IPARAM_BOUND,
IPARAM_BOUNDDEPS,
IPARAM_BOUNDDEPSPRIO,
/* End */
/* Added for libhqr version */
IPARAM_LOWLVL_TREE, /* Tree used for reduction inside nodes */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment