ソースを参照

only gordon requires an argument here

Cédric Augonnet 16 年 前
コミット
58e0f5a673
共有2 個のファイルを変更した8 個の追加0 個の削除を含む
  1. 4 0
      examples/mult/dw_mult_no_stride.c
  2. 4 0
      examples/mult/dw_mult_no_stride_no_tag.c

+ 4 - 0
examples/mult/dw_mult_no_stride.c

@@ -271,9 +271,11 @@ static void init_problem_data(void)
 		}
 	}
 
+#ifdef USE_GORDON
 	conf.k = BLOCKSIZEZ;
 	conf.m = BLOCKSIZEY;
 	conf.n = BLOCKSIZEX;
+#endif
 
 	display_memory_consumption();
 }
@@ -361,8 +363,10 @@ static struct starpu_task *construct_task(unsigned x, unsigned y, unsigned z, un
 
 	task->cl = &cl;
 
+#ifdef USE_GORDON
 	task->cl_arg = &conf;
 	task->cl_arg_size = sizeof(struct ibm_sgemm_block_conf);
+#endif
 
 	task->use_tag = 1;
 	task->tag_id = TAG(z, y, x, iter);

+ 4 - 0
examples/mult/dw_mult_no_stride_no_tag.c

@@ -269,9 +269,11 @@ static void init_problem_data(void)
 		}
 	}
 
+#ifdef USE_GORDON
 	conf.k = BLOCKSIZEZ;
 	conf.m = BLOCKSIZEY;
 	conf.n = BLOCKSIZEX;
+#endif
 
 	fprintf(stderr, "block size : x %d y %d z %d\n", BLOCKSIZEX, BLOCKSIZEY, BLOCKSIZEZ);
 
@@ -405,8 +407,10 @@ static void construct_task(unsigned x, unsigned y, unsigned z, unsigned iter, st
 	task->callback_func = callback_func_3;
 	task->callback_arg = posp;
 
+#ifdef USE_GORDON
 	task->cl_arg = &conf;
 	task->cl_arg_size = sizeof(struct ibm_sgemm_block_conf);
+#endif
 
 	posp->z = z;
 	posp->iter = iter;