瀏覽代碼

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;
 
 }