|
@@ -2,7 +2,7 @@
|
|
|
*
|
|
|
* Copyright (C) 2010-2011 Université de Bordeaux 1
|
|
|
* Copyright (C) 2010 Mehdi Juhoor <mjuhoor@gmail.com>
|
|
|
- * Copyright (C) 2010, 2011 Centre National de la Recherche Scientifique
|
|
|
+ * Copyright (C) 2010, 2011, 2012 Centre National de la Recherche Scientifique
|
|
|
*
|
|
|
* StarPU is free software; you can redistribute it and/or modify
|
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
@@ -390,6 +390,7 @@ static void parse_args(int argc, char **argv)
|
|
|
int main(int argc, char **argv)
|
|
|
{
|
|
|
unsigned iter;
|
|
|
+ int ret;
|
|
|
|
|
|
parse_args(argc, argv);
|
|
|
|
|
@@ -402,7 +403,8 @@ int main(int argc, char **argv)
|
|
|
fprintf(stderr, "input: %s\noutput: %s\n#chunks %d\n", inputfilename, outputfilename, niter);
|
|
|
|
|
|
/* launch StarPU */
|
|
|
- starpu_init(NULL);
|
|
|
+ ret = starpu_init(NULL);
|
|
|
+ STARPU_CHECK_RETURN_VALUE(ret, "starpu_init");
|
|
|
|
|
|
starpu_vector_data_register(&A_handle, 0, (uintptr_t)A, niter*nsamples, sizeof(float));
|
|
|
|