ソースを参照

do not call starpu_shutdown() when starpu_init() returns -ENODEV

Nathalie Furmento 10 年 前
コミット
cc743b377c
共有2 個のファイルを変更した1 個の追加3 個の削除を含む
  1. 1 2
      examples/basic_examples/variable.c
  2. 0 1
      tests/sched_policies/data_locality.c

+ 1 - 2
examples/basic_examples/variable.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010, 2011, 2013  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
@@ -102,6 +102,5 @@ int main(int argc, char **argv)
 	return (foo == niter) ? EXIT_SUCCESS:EXIT_FAILURE;
 
 enodev:
-	starpu_shutdown();
 	return 77;
 }

+ 0 - 1
tests/sched_policies/data_locality.c

@@ -156,7 +156,6 @@ run(struct starpu_sched_policy *policy)
 
 enodev:
 	FPRINTF(stderr, "No device found\n");
-	starpu_shutdown();
 	return -ENODEV;
 
 }