perf.sh 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/bash
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2020 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
  5. #
  6. # StarPU is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU Lesser General Public License as published by
  8. # the Free Software Foundation; either version 2.1 of the License, or (at
  9. # your option) any later version.
  10. #
  11. # StarPU is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. #
  15. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  16. #
  17. stride=72
  18. #stride=4
  19. export STARPU_NOPENCL=0
  20. export STARPU_SCHED=dmda
  21. export STARPU_CALIBRATE=1
  22. rm -f ./cstarpu.dat julia_generatedc.dat julia_native.dat julia_calllib.dat
  23. $(dirname $0)/mult $stride > ./cstarpu.dat
  24. $(dirname $0)/../execute.sh mult/mult.jl $stride julia_generatedc.dat
  25. $(dirname $0)/../execute.sh mult/mult_native.jl $stride julia_native.dat
  26. $(dirname $0)/../execute.sh -calllib mult/cpu_mult.c mult/mult.jl $stride julia_calllib.dat
  27. (
  28. cat <<EOF
  29. set output "comparison.pdf"
  30. set term pdf
  31. plot "julia_native.dat" w l,"cstarpu.dat" w l,"julia_generatedc.dat" w l,"julia_calllib.dat" w l
  32. EOF
  33. ) | gnuplot