Mentions légales du service

Skip to content
Snippets Groups Projects
Commit b20c3384 authored by THIBAULT Samuel's avatar THIBAULT Samuel Committed by Mathieu Faverge
Browse files

Remove -bounddeps/-bounddepsprio and document -bound

parent 363bf86f
No related branches found
No related tags found
1 merge request!58Remove -bounddeps/-bounddepsprio and document -bound
...@@ -127,8 +127,6 @@ enum iparam_examples { ...@@ -127,8 +127,6 @@ enum iparam_examples {
IPARAM_PARALLEL_TASKS, IPARAM_PARALLEL_TASKS,
IPARAM_NO_CPU, IPARAM_NO_CPU,
IPARAM_BOUND, IPARAM_BOUND,
IPARAM_BOUNDDEPS,
IPARAM_BOUNDDEPSPRIO,
/* End */ /* End */
IPARAM_SIZEOF IPARAM_SIZEOF
}; };
...@@ -191,8 +189,6 @@ static void init_iparam(int iparam[IPARAM_SIZEOF]){ ...@@ -191,8 +189,6 @@ static void init_iparam(int iparam[IPARAM_SIZEOF]){
iparam[IPARAM_PARALLEL_TASKS] = 0; iparam[IPARAM_PARALLEL_TASKS] = 0;
iparam[IPARAM_NO_CPU ] = 0; iparam[IPARAM_NO_CPU ] = 0;
iparam[IPARAM_BOUND ] = 0; iparam[IPARAM_BOUND ] = 0;
iparam[IPARAM_BOUNDDEPS ] = 0;
iparam[IPARAM_BOUNDDEPSPRIO ] = 0;
} }
static void read_args(int argc, char *argv[], int *iparam){ static void read_args(int argc, char *argv[], int *iparam){
......
...@@ -201,33 +201,15 @@ Test(int64_t n, int *iparam) { ...@@ -201,33 +201,15 @@ Test(int64_t n, int *iparam) {
gflops = flops / t[iter]; gflops = flops / t[iter];
#if defined (CHAMELEON_SCHED_STARPU) #if defined (CHAMELEON_SCHED_STARPU)
/* TODO: create chameleon interface encapsulating this instead */
if (iparam[IPARAM_BOUND]) if (iparam[IPARAM_BOUND])
{ {
double upper_gflops = 0.0; double upper_gflops = 0.0;
double tmin = 0.0; double tmin = 0.0;
double integer_tmin = 0.0; double integer_tmin = 0.0;
#if 0 starpu_bound_compute(&tmin, &integer_tmin, 0);
if (iparam[IPARAM_BOUNDDEPS]) { upper_gflops = (flops / (tmin / 1000.0));
FILE *out = fopen("bounddeps.pl", "w"); sumgf_upper += upper_gflops;
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
} }
#endif #endif
sumt += t[iter]; sumt += t[iter];
...@@ -241,7 +223,7 @@ Test(int64_t n, int *iparam) { ...@@ -241,7 +223,7 @@ Test(int64_t n, int *iparam) {
if ( MORSE_My_Mpi_Rank() == 0) { if ( MORSE_My_Mpi_Rank() == 0) {
printf( "%9.3f %9.2f +-%7.2f ", sumt/niter, gflops, sd); 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); printf(" %9.2f", sumgf_upper/niter);
if ( iparam[IPARAM_PEAK] ) if ( iparam[IPARAM_PEAK] )
...@@ -408,9 +390,7 @@ show_help(char *prog_name) { ...@@ -408,9 +390,7 @@ show_help(char *prog_name) {
" -o, --ooc Enable out-of-core (available only with StarPU)\n" " -o, --ooc Enable out-of-core (available only with StarPU)\n"
" -G, --gemm3m Use gemm3m complex method\n" " -G, --gemm3m Use gemm3m complex method\n"
//" --peak ?\n"todo //" --peak ?\n"todo
//" --bound ?\n"todo " --bound Compare result to area bound\n"
//" --bounddeps ?\n"todo
//" --bounddepsprio ?\n"todo
"\n"); "\n");
} }
...@@ -458,7 +438,7 @@ print_header(char *prog_name, int * iparam) { ...@@ -458,7 +438,7 @@ print_header(char *prog_name, int * iparam) {
return; 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) #if defined(CHAMELEON_HAVE_GETOPT_LONG)
static struct option long_options[] = static struct option long_options[] =
{ {
...@@ -506,8 +486,6 @@ static struct option long_options[] = ...@@ -506,8 +486,6 @@ static struct option long_options[] =
{"gemm3m", no_argument, 0, 'G'}, {"gemm3m", no_argument, 0, 'G'},
{"peak", no_argument, 0, '4'}, {"peak", no_argument, 0, '4'},
{"bound", no_argument, 0, '5'}, {"bound", no_argument, 0, '5'},
{"bounddeps", no_argument, 0, '6'},
{"bounddepsprio", no_argument, 0, '7'},
{0, 0, 0, 0} {0, 0, 0, 0}
}; };
#endif /* defined(CHAMELEON_HAVE_GETOPT_LONG) */ #endif /* defined(CHAMELEON_HAVE_GETOPT_LONG) */
...@@ -637,11 +615,6 @@ parse_arguments(int *_argc, char ***_argv, int *iparam, int *start, int *stop, i ...@@ -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 'G' : iparam[IPARAM_GEMM3M ] = 1; break;
case '4' : iparam[IPARAM_PEAK ] = 1; break; case '4' : iparam[IPARAM_PEAK ] = 1; break;
case '5' : iparam[IPARAM_BOUND ] = 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 'h' :
case '?' : case '?' :
show_help(argv[0]); exit(EXIT_FAILURE); show_help(argv[0]); exit(EXIT_FAILURE);
......
...@@ -59,8 +59,6 @@ enum iparam_timing { ...@@ -59,8 +59,6 @@ enum iparam_timing {
IPARAM_PARALLEL_TASKS, IPARAM_PARALLEL_TASKS,
IPARAM_NO_CPU, IPARAM_NO_CPU,
IPARAM_BOUND, IPARAM_BOUND,
IPARAM_BOUNDDEPS,
IPARAM_BOUNDDEPSPRIO,
/* End */ /* End */
/* Added for libhqr version */ /* Added for libhqr version */
IPARAM_LOWLVL_TREE, /* Tree used for reduction inside nodes */ 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