Browse Source

examples: make sure codelet structures are completely zeroed

Nathalie Furmento 14 years ago
parent
commit
681c476c42

+ 1 - 1
examples/basic_examples/hello_world.c

@@ -57,7 +57,7 @@ void cpu_func(void *buffers[], void *cl_arg)
 	FPRINTF(stdout, "Hello world (params = {%i, %f} )\n", params->i, params->f);
 }
 
-starpu_codelet cl;
+starpu_codelet cl = {};
 
 int main(int argc, char **argv)
 {

+ 1 - 1
examples/tag_example/tag_example.c

@@ -30,7 +30,7 @@
 #define FPRINTF(ofile, fmt, args ...) do { if (!getenv("STARPU_SSILENT")) {fprintf(ofile, fmt, ##args); }} while(0)
 #define TAG(i, j, iter)	((starpu_tag_t) ( ((uint64_t)(iter)<<48) |  ((uint64_t)(j)<<24) | (i)) )
 
-starpu_codelet cl;
+starpu_codelet cl = {};
 
 #define Ni	64
 #define Nj	32

+ 1 - 1
examples/tag_example/tag_example2.c

@@ -30,7 +30,7 @@
 #define FPRINTF(ofile, fmt, args ...) do { if (!getenv("STARPU_SSILENT")) {fprintf(ofile, fmt, ##args); }} while(0)
 #define TAG(i, iter)	((starpu_tag_t)  (((uint64_t)iter)<<32 | (i)) )
 
-starpu_codelet cl;
+starpu_codelet cl = {};
 
 #define Ni	64
 #define Nk	256

+ 1 - 1
examples/tag_example/tag_example3.c

@@ -30,7 +30,7 @@
 #define FPRINTF(ofile, fmt, args ...) do { if (!getenv("STARPU_SSILENT")) {fprintf(ofile, fmt, ##args); }} while(0)
 #define TAG(i, iter)	((starpu_tag_t)  (((uint64_t)iter)<<32 | (i)) )
 
-starpu_codelet cl;
+starpu_codelet cl = {};
 
 #define Ni	64
 #define Nk	256

+ 1 - 1
examples/tag_example/tag_restartable.c

@@ -35,7 +35,7 @@
 #define FPRINTF(ofile, fmt, args ...) do { if (!getenv("STARPU_SSILENT")) {fprintf(ofile, fmt, ##args); }} while(0)
 #define TAG(i, iter)	((starpu_tag_t)  (((uint64_t)((iter)%Nrolls))<<32 | (i)) )
 
-starpu_codelet cl;
+starpu_codelet cl = {};
 
 #define Ni	64
 #define Nk	256