浏览代码

examples: remove call to starpu_shutdown() when starpu_init() returns ENODEV

Nathalie Furmento 10 年之前
父节点
当前提交
9a1d3f3e83
共有 2 个文件被更改,包括 2 次插入4 次删除
  1. 1 2
      examples/binary/binary.c
  2. 1 2
      examples/matvecmult/matvecmult.c

+ 1 - 2
examples/binary/binary.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009, 2010-2011, 2013-2014  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013  Centre National de la Recherche Scientifique
+ * Copyright (C) 2010, 2011, 2012, 2013, 2014  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
@@ -103,7 +103,6 @@ int main(int argc, char **argv)
 	if (STARPU_UNLIKELY(ret == -ENODEV))
 	{
                 FPRINTF(stderr, "This application requires an OpenCL worker.\n");
-		starpu_shutdown();
 		return 77;
 	}
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_init");

+ 1 - 2
examples/matvecmult/matvecmult.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010, 2011-2012, 2014  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013  Centre National de la Recherche Scientifique
+ * Copyright (C) 2010, 2011, 2012, 2013, 2014  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
@@ -160,7 +160,6 @@ int main(int argc, char **argv)
 	if (STARPU_UNLIKELY(ret == -ENODEV))
 	{
                 FPRINTF(stderr, "This application requires an OpenCL worker.\n");
-		starpu_shutdown();
 		return 77;
 	}