Mentions légales du service

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

Change the error option, into warning option to disable the messages

parent f03703b2
No related branches found
No related tags found
1 merge request!25Fix issue 12 - error message
...@@ -492,7 +492,7 @@ main(int argc, char *argv[]) { ...@@ -492,7 +492,7 @@ main(int argc, char *argv[]) {
iparam[IPARAM_GEMM3M ] = 0; iparam[IPARAM_GEMM3M ] = 0;
iparam[IPARAM_PROGRESS ] = 0; iparam[IPARAM_PROGRESS ] = 0;
iparam[IPARAM_PROFILE ] = 0; iparam[IPARAM_PROFILE ] = 0;
iparam[IPARAM_PRINT_ERRORS ] = 0; iparam[IPARAM_PRINT_WARNINGS] = 1;
iparam[IPARAM_PEAK ] = 0; iparam[IPARAM_PEAK ] = 0;
iparam[IPARAM_PARALLEL_TASKS] = 0; iparam[IPARAM_PARALLEL_TASKS] = 0;
iparam[IPARAM_NO_CPU ] = 0; iparam[IPARAM_NO_CPU ] = 0;
...@@ -586,8 +586,8 @@ main(int argc, char *argv[]) { ...@@ -586,8 +586,8 @@ main(int argc, char *argv[]) {
iparam[IPARAM_PEAK] = 1; iparam[IPARAM_PEAK] = 1;
} else if (startswith( argv[i], "--noprofile" )) { } else if (startswith( argv[i], "--noprofile" )) {
iparam[IPARAM_PROFILE] = 0; iparam[IPARAM_PROFILE] = 0;
} else if (startswith( argv[i], "--printerrors" )) { } else if (startswith( argv[i], "--nowarnings" )) {
iparam[IPARAM_PRINT_ERRORS] = 1; iparam[IPARAM_PRINT_WARNINGS] = 0;
/* } else if (startswith( argv[i], "--parallel=" )) { */ /* } else if (startswith( argv[i], "--parallel=" )) { */
/* sscanf( strchr( argv[i], '=' ) + 1, "%d", &(iparam[IPARAM_PARALLEL_TASKS]) ); */ /* sscanf( strchr( argv[i], '=' ) + 1, "%d", &(iparam[IPARAM_PARALLEL_TASKS]) ); */
/* } else if (startswith( argv[i], "--noparallel" )) { */ /* } else if (startswith( argv[i], "--noparallel" )) { */
...@@ -653,12 +653,12 @@ main(int argc, char *argv[]) { ...@@ -653,12 +653,12 @@ main(int argc, char *argv[]) {
if (iparam[IPARAM_PROFILE] == 1) if (iparam[IPARAM_PROFILE] == 1)
MORSE_Enable(MORSE_PROFILING_MODE); MORSE_Enable(MORSE_PROFILING_MODE);
if (iparam[IPARAM_PRINT_ERRORS] == 1)
MORSE_Enable(MORSE_ERRORS);
if (iparam[IPARAM_PROGRESS] == 1) if (iparam[IPARAM_PROGRESS] == 1)
MORSE_Enable(MORSE_PROGRESS); MORSE_Enable(MORSE_PROGRESS);
if (iparam[IPARAM_PRINT_WARNINGS] == 0)
MORSE_Disable(MORSE_WARNINGS);
if (iparam[IPARAM_GEMM3M] == 1) if (iparam[IPARAM_GEMM3M] == 1)
MORSE_Enable(MORSE_GEMM3M); MORSE_Enable(MORSE_GEMM3M);
......
...@@ -54,7 +54,7 @@ enum iparam_timing { ...@@ -54,7 +54,7 @@ enum iparam_timing {
IPARAM_GEMM3M, /* Use GEMM3M for complex matrix vector products */ IPARAM_GEMM3M, /* Use GEMM3M for complex matrix vector products */
/* Added for StarPU version */ /* Added for StarPU version */
IPARAM_PROFILE, IPARAM_PROFILE,
IPARAM_PRINT_ERRORS, IPARAM_PRINT_WARNINGS,
IPARAM_PEAK, IPARAM_PEAK,
IPARAM_PARALLEL_TASKS, IPARAM_PARALLEL_TASKS,
IPARAM_NO_CPU, IPARAM_NO_CPU,
......
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