소스 검색

port -r 21197 from numa : force empty task for coherency to be executed on the home node

Corentin Salingue 8 년 전
부모
커밋
c61c815dcf
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      examples/filters/fmultiple_manual.c

+ 5 - 0
examples/filters/fmultiple_manual.c

@@ -130,6 +130,11 @@ int main(int argc, char **argv)
 		return 77;
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_init");
 
+	/* force to execute task on the home_node, here it is STARPU_MAIN_RAM */
+	cl_switch.specific_nodes = 1;
+	for (i = 0; i < STARPU_NMAXBUFS; i++)
+		cl_switch.nodes[i] = STARPU_MAIN_RAM;
+
 	/* Declare the whole matrix to StarPU */
 	starpu_matrix_data_register(&handle, STARPU_MAIN_RAM, (uintptr_t)matrix, NX, NX, NY, sizeof(matrix[0][0]));