4. Running a Poplar program on your Pod
You are now ready to run your first program on your Pod. The Poplar SDK contains a number of example programs, for example, the program
adder_ipu.cpp
builds a simple graph to add two vectors together and return
the result.
Make a copy of the
poplar/examples/adder
directory in your working directoryCompile the program:
$ make
Run the program.
It will produce the following output:
$ ./adder_ipu Creating graph Building engine v1 sum = 10 v2 sum = 65
This simple example just runs on one IPU. Further examples and tutorials can be found in the Graphcore GitHub examples repository, such as: Introduction to PopTorch — running a simple model.
See Section 6, Next steps for more information on writing your own programs for the IPU.