Parcourir la source

julia: add example mandelbrot to make check

Nathalie Furmento il y a 5 ans
Parent
commit
c416e3fd67

+ 1 - 1
configure.ac

@@ -3520,7 +3520,7 @@ AC_CONFIG_COMMANDS([executable-scripts], [
   test -e tools/starpu_trace_state_stats.py || ln -sf $ac_abs_top_srcdir/tools/starpu_trace_state_stats.py tools/starpu_trace_state_stats.py
   chmod +x tools/starpu_trace_state_stats.py
   chmod +x julia/examples/execute.sh
-  for x in julia/examples/mult/mult_starpu.sh julia/examples/mult/perf.sh julia/examples/variable/variable.sh julia/examples/task_insert_color/task_insert_color.sh julia/examples/vector_scal/vector_scal.sh ; do
+  for x in julia/examples/mult/mult_starpu.sh julia/examples/mult/perf.sh julia/examples/variable/variable.sh julia/examples/task_insert_color/task_insert_color.sh julia/examples/vector_scal/vector_scal.sh julia/examples/mandelbrot/mandelbrot.sh; do
       test -e $x || mkdir -p $(dirname $x) && ln -sf $ac_abs_top_srcdir/$x $(dirname $x)
   done
 ])

+ 4 - 2
julia/examples/Makefile.am

@@ -77,9 +77,8 @@ endif
 ######################
 
 STARPU_JULIA_EXAMPLES	+=	mult/mult
+mult_mult_SOURCES	=	mult/mult.c mult/cpu_mult.c
 SHELL_TESTS		+=	mult/mult_starpu.sh
-mult_mult_SOURCES =	mult/mult.c mult/cpu_mult.c
-#mult_mult_CPPFLAGS = $(AM_CPPFLAGS)
 
 STARPU_JULIA_EXAMPLES				+=	task_insert_color/task_insert_color
 task_insert_color_task_insert_color_SOURCES	=	task_insert_color/task_insert_color.c
@@ -88,3 +87,6 @@ SHELL_TESTS					+=	task_insert_color/task_insert_color.sh
 SHELL_TESTS	+=	variable/variable.sh
 SHELL_TESTS	+=	vector_scal/vector_scal.sh
 
+STARPU_JULIA_EXAMPLES		+=	mandelbrot/mandelbrot
+mandelbrot_mandelbrot_SOURCES	=	mandelbrot/mandelbrot.c mandelbrot/cpu_mandelbrot.c mandelbrot/cpu_mandelbrot.h
+SHELL_TESTS			+=	mandelbrot/mandelbrot.sh

julia/examples/mandelbrot/Makefile → julia/examples/mandelbrot/Makefile.old


+ 6 - 0
julia/examples/mandelbrot/mandelbrot.sh

@@ -0,0 +1,6 @@
+#!/bin/bash
+
+$(dirname $0)/../execute.sh mandelbrot/mandelbrot.jl
+$(dirname $0)/../execute.sh mandelbrot/mandelbrot_native.jl
+$(dirname $0)/../execute.sh -calllib mandelbrot/cpu_mandelbrot.c mandelbrot/mandelbrot.jl
+