this snippet of code is based on the ethernet example in AN00199. A library server, that takes an interface array, is running on one tile, with a client on the same tile, and there's another client running on another tile.
Code: Select all
int main()
{
my_interface my_if[NUM_CLIENTS];
par {
on tile[1]: library_server(my_if, NUM_CLIENTS, ...);
on tile[1]: local_client(my_if[0], ...);
on tile[1]: etc...
on tile[0]: another_client(my_if[1],...);
on tile[0]: etc...
}
...
}
Code: Select all
par {
on tile[0]: tile_tasks_0(...);
on tile[1]: tile_tasks_1(...);
}
Thanks.