Explorar o código

run more examples on Phi

Samuel Thibault %!s(int64=9) %!d(string=hai) anos
pai
achega
06b4a40c69

+ 2 - 0
examples/basic_examples/dynamic_handles.c

@@ -53,6 +53,7 @@ static void dummy_big_kernel(void *descr[], void *cl_arg)
 static struct starpu_codelet dummy_small_cl =
 {
 	.cpu_funcs = {dummy_small_kernel},
+	.cpu_funcs_name = {"dummy_small_kernel"},
 	.modes = {STARPU_RW},
 	.nbuffers = 1
 };
@@ -60,6 +61,7 @@ static struct starpu_codelet dummy_small_cl =
 struct starpu_codelet dummy_big_cl =
 {
 	.cpu_funcs = {dummy_big_kernel},
+	.cpu_funcs_name = {"dummy_big_kernel"},
 	.nbuffers = STARPU_NMAXBUFS+1
 };
 

+ 2 - 1
examples/basic_examples/hello_world.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010  Université de Bordeaux
+ * Copyright (C) 2010, 2015  Université de Bordeaux
  * Copyright (C) 2010, 2011, 2012, 2013  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -83,6 +83,7 @@ int main(int argc, char **argv)
 	/* this codelet may only be executed on a CPU, and its cpu
  	 * implementation is function "cpu_func" */
 	cl.cpu_funcs[0] = cpu_func;
+	cl.cpu_funcs_name[0] = "cpu_func";
 	/* the codelet does not manipulate any data that is managed
 	 * by our DSM */
 	cl.nbuffers = 0;

+ 1 - 0
examples/basic_examples/multiformat.c

@@ -82,6 +82,7 @@ extern void multiformat_scal_opencl_func(void *buffers[], void *arg);
 static struct starpu_codelet cpu_cl =
 {
 	.cpu_funcs = {multiformat_scal_cpu_func},
+	.cpu_funcs_name = {"multiformat_scal_cpu_func"},
 	.nbuffers = 1,
 	.modes = { STARPU_RW },
 	.name = "codelet_real"

+ 2 - 1
examples/basic_examples/variable.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010, 2011, 2013  Université de Bordeaux
+ * Copyright (C) 2010, 2011, 2013, 2015  Université de Bordeaux
  * Copyright (C) 2010, 2011, 2012, 2013, 2014  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -60,6 +60,7 @@ int main(int argc, char **argv)
 
 	starpu_codelet_init(&cl);
         cl.cpu_funcs[0] = cpu_codelet;
+        cl.cpu_funcs_name[0] = "cpu_codelet";
 #ifdef STARPU_USE_CUDA
         cl.cuda_funcs[0] = cuda_codelet;
 #endif

+ 1 - 0
examples/callback/callback.c

@@ -37,6 +37,7 @@ struct starpu_codelet cl =
 {
 	.modes = { STARPU_RW },
 	.cpu_funcs = {cpu_codelet},
+	.cpu_funcs_name = {"cpu_codelet"},
 	.nbuffers = 1,
 	.name = "callback"
 };

+ 1 - 0
examples/callback/prologue.c

@@ -40,6 +40,7 @@ struct starpu_codelet cl =
 {
 	.modes = { STARPU_RW },
 	.cpu_funcs = {cpu_codelet},
+	.cpu_funcs_name = {"cpu_codelet"},
 	.nbuffers = 1,
 	.name = "callback"
 };

+ 1 - 0
examples/cpp/incrementer_cpp.cpp

@@ -64,6 +64,7 @@ int main(int argc, char **argv)
 
         starpu_codelet_init(&cl);
         cl.cpu_funcs[0] = cpu_codelet;
+        cl.cpu_funcs_name[0] = "cpu_codelet";
 #ifdef STARPU_USE_CUDA
         cl.cuda_funcs[0] = cuda_codelet;
 	cl.cuda_flags[0] = STARPU_CUDA_ASYNC;

+ 1 - 0
examples/tag_example/tag_example.c

@@ -232,6 +232,7 @@ int main(int argc STARPU_ATTRIBUTE_UNUSED , char **argv STARPU_ATTRIBUTE_UNUSED)
 
 	starpu_codelet_init(&cl);
 	cl.cpu_funcs[0] = cpu_codelet;
+	cl.cpu_funcs_name[0] = "cpu_codelet";
 	cl.cuda_funcs[0] = cpu_codelet;
 	cl.opencl_funcs[0] = cpu_codelet;
 	cl.nbuffers = 0;

+ 2 - 1
examples/tag_example/tag_example2.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2009, 2010, 2012-2013  Université de Bordeaux
+ * Copyright (C) 2009, 2010, 2012-2013, 2015  Université de Bordeaux
  * Copyright (C) 2010, 2011, 2012, 2013  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -124,6 +124,7 @@ int main(int argc STARPU_ATTRIBUTE_UNUSED , char **argv STARPU_ATTRIBUTE_UNUSED)
 
 	starpu_codelet_init(&cl);
 	cl.cpu_funcs[0] = cpu_codelet;
+	cl.cpu_funcs_name[0] = "cpu_codelet";
 	cl.cuda_funcs[0] = cpu_codelet;
 	cl.opencl_funcs[0] = cpu_codelet;
 	cl.nbuffers = 0;

+ 2 - 1
examples/tag_example/tag_example3.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2009, 2010, 2012-2013  Université de Bordeaux
+ * Copyright (C) 2009, 2010, 2012-2013, 2015  Université de Bordeaux
  * Copyright (C) 2010, 2011, 2012, 2013  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -126,6 +126,7 @@ int main(int argc STARPU_ATTRIBUTE_UNUSED , char **argv STARPU_ATTRIBUTE_UNUSED)
 
 	starpu_codelet_init(&cl);
 	cl.cpu_funcs[0] = cpu_codelet;
+	cl.cpu_funcs_name[0] = "cpu_codelet";
 	cl.cuda_funcs[0] = cpu_codelet;
 	cl.opencl_funcs[0] = cpu_codelet;
 	cl.nbuffers = 0;

+ 1 - 0
examples/tag_example/tag_restartable.c

@@ -150,6 +150,7 @@ int main(int argc STARPU_ATTRIBUTE_UNUSED , char **argv STARPU_ATTRIBUTE_UNUSED)
 
 	starpu_codelet_init(&cl);
 	cl.cpu_funcs[0] = cpu_codelet;
+	cl.cpu_funcs_name[0] = "cpu_codelet";
 	cl.cuda_funcs[0] = cpu_codelet;
 	cl.opencl_funcs[0] = cpu_codelet;
 	cl.nbuffers = 0;