Skip to content

Commit

Permalink
examples/math/matmul: Use 2D team topology
Browse files Browse the repository at this point in the history
Signed-off-by: Ola Jeppsson <[email protected]>
  • Loading branch information
olajep committed Aug 3, 2016
1 parent 03b6b95 commit a8eb920
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/math/matmul/matmul-host.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ int main(int argc, char *argv[])
p_dev_t dev;
p_prog_t prog;
p_team_t team;
p_coords_t start = { .row = 0, .col = 0 };
p_coords_t size = { .row = 4, .col = 4 };

unsigned int msize;
float seed;
Expand All @@ -116,7 +118,7 @@ int main(int argc, char *argv[])

dev = p_init(P_DEV_EPIPHANY, 0);
prog = p_load(dev, ar.elfFile, 0);
team = p_open(dev, 0, 16);
team = p_open4(dev, P_TOPOLOGY_2D, &start, &size);

shared_mem = p_map(dev, 0x8e000000, msize);

Expand Down

0 comments on commit a8eb920

Please sign in to comment.