소스 검색

give better names

Samuel Thibault 14 년 전
부모
커밋
d733ca88df
1개의 변경된 파일11개의 추가작업 그리고 11개의 파일을 삭제
  1. 11 11
      examples/mult/xgemm.c

+ 11 - 11
examples/mult/xgemm.c

@@ -102,20 +102,20 @@ static void partition_mult_data(void)
 	starpu_matrix_data_register(&C_handle, 0, (uintptr_t)C, 
 		ydim, ydim, xdim, sizeof(TYPE));
 
-	struct starpu_data_filter f;
-	memset(&f, 0, sizeof(f));
-	f.filter_func = starpu_vertical_block_filter_func;
-	f.nchildren = nslicesx;
+	struct starpu_data_filter vert;
+	memset(&vert, 0, sizeof(vert));
+	vert.filter_func = starpu_vertical_block_filter_func;
+	vert.nchildren = nslicesx;
 		
-	struct starpu_data_filter f2;
-	memset(&f2, 0, sizeof(f2));
-	f2.filter_func = starpu_block_filter_func;
-	f2.nchildren = nslicesy;
+	struct starpu_data_filter horiz;
+	memset(&horiz, 0, sizeof(horiz));
+	horiz.filter_func = starpu_block_filter_func;
+	horiz.nchildren = nslicesy;
 		
-	starpu_data_partition(B_handle, &f);
-	starpu_data_partition(A_handle, &f2);
+	starpu_data_partition(B_handle, &vert);
+	starpu_data_partition(A_handle, &horiz);
 
-	starpu_data_map_filters(C_handle, 2, &f, &f2);
+	starpu_data_map_filters(C_handle, 2, &vert, &horiz);
 }
 
 static void mult_kernel_common(void *descr[], int type)