Browse Source

explain a common possibility for unknown argument given to task_insert and friends

Samuel Thibault 9 years ago
parent
commit
49ec3bfcde
2 changed files with 5 additions and 5 deletions
  1. 2 2
      mpi/src/starpu_mpi_task_insert.c
  2. 3 3
      src/util/starpu_task_insert_utils.c

+ 2 - 2
mpi/src/starpu_mpi_task_insert.c

@@ -407,7 +407,7 @@ int _starpu_mpi_task_decode_v(struct starpu_codelet *codelet, int me, int nb_nod
 		}
 		else
 		{
-			STARPU_ABORT_MSG("Unrecognized argument %d\n", arg_type);
+			STARPU_ABORT_MSG("Unrecognized argument %d, did you perhaps forget to end arguments with 0?\n", arg_type);
 		}
 
 	}
@@ -684,7 +684,7 @@ int _fstarpu_mpi_task_decode_v(struct starpu_codelet *codelet, int me, int nb_no
 		}
 		else
 		{
-			STARPU_ABORT_MSG("Unrecognized argument %d\n", arg_type);
+			STARPU_ABORT_MSG("Unrecognized argument %d, did you perhaps forget to end arguments with 0?\n", arg_type);
 		}
 
 		arg_i++;

+ 3 - 3
src/util/starpu_task_insert_utils.c

@@ -157,7 +157,7 @@ int _starpu_codelet_pack_args(void **arg_buffer, size_t *arg_buffer_size, va_lis
 		}
 		else
 		{
-			STARPU_ABORT_MSG("Unrecognized argument %d\n", arg_type);
+			STARPU_ABORT_MSG("Unrecognized argument %d, did you perhaps forget to end arguments with 0?\n", arg_type);
 		}
 	}
 
@@ -441,7 +441,7 @@ int _starpu_task_insert_create(struct starpu_codelet *cl, struct starpu_task **t
 		}
 		else
 		{
-			STARPU_ABORT_MSG("Unrecognized argument %d\n", arg_type);
+			STARPU_ABORT_MSG("Unrecognized argument %d, did you perhaps forget to end arguments with 0?\n", arg_type);
 		}
 	}
 
@@ -651,7 +651,7 @@ int _fstarpu_task_insert_create(struct starpu_codelet *cl, struct starpu_task **
 		}
 		else
 		{
-			STARPU_ABORT_MSG("unknown/unsupported argument type");
+			STARPU_ABORT_MSG("unknown/unsupported argument %d, did you perhaps forget to end arguments with 0?", arg_type);
 		}
 		arg_i++;
 	}