Browse Source

examples/scheduler: use tools/starpu_sched_display to get list of schedulers

Nathalie Furmento 6 years ago
parent
commit
a287cf8a7d
2 changed files with 4 additions and 4 deletions
  1. 2 2
      examples/scheduler/schedulers.sh
  2. 2 2
      examples/scheduler/schedulers_context.sh

+ 2 - 2
examples/scheduler/schedulers.sh

@@ -2,7 +2,7 @@
 # StarPU --- Runtime system for heterogeneous multicore architectures.
 #
 # Copyright (C) 2012                                     Inria
-# Copyright (C) 2012-2015,2017                           CNRS
+# Copyright (C) 2012-2015,2017,2018                      CNRS
 # Copyright (C) 2012,2017                                Université de Bordeaux
 #
 # StarPU is free software; you can redistribute it and/or modify
@@ -30,7 +30,7 @@ then
     exit 77
 fi
 
-SCHEDULERS=`STARPU_SCHED="help" ./basic_examples/hello_world 2>&1 | awk '/\t->/ {print $1}' | grep -v heteroprio`
+SCHEDULERS=`../tools/starpu_sched_display | grep -v heteroprio`
 
 for sched in $SCHEDULERS
 do

+ 2 - 2
examples/scheduler/schedulers_context.sh

@@ -1,7 +1,7 @@
 #!/bin/sh
 # StarPU --- Runtime system for heterogeneous multicore architectures.
 #
-# Copyright (C) 2012,2014,2015,2017                      CNRS
+# Copyright (C) 2012,2014,2015,2017,2018                 CNRS
 # Copyright (C) 2017                                     Université de Bordeaux
 #
 # StarPU is free software; you can redistribute it and/or modify
@@ -29,7 +29,7 @@ then
     exit 77
 fi
 
-SCHEDULERS=`STARPU_SCHED="help" ./basic_examples/hello_world 2>&1 | awk '/\t->/ {print $1}' | grep -v pheft | grep -v peager | grep -v heteroprio`
+SCHEDULERS=`../tools/starpu_sched_display | grep -v pheft | grep -v peager | grep -v heteroprio`
 
 for sched in $SCHEDULERS
 do