This program is a simple pi=3.14159... calculation which utilizes multiple threads
on the host (Zynq). Each thread offloads a seperate kernel to the default devive
(Epiphany). The OMP_DEFAULT_DEVICE environmental variable may be used to offload
the kernels to the Zynq cores instead.
You need to have OMPi v2.0.0 or later installed. In order to build this application, simply execute:
ompicc pi.cOn esdk.2015.1, run the application executing the following command:
./a.outFor older e-SDK versions:
./run.shTo target the Zynq or the Epiphany set the value of OMP_DEFAULT_DEVICE environmental variable
to 0 or 1 correspondingly.
For example:
export OMP_DEFAULT_DEVICE="0"
export OMP_DEFAULT_DEVICE="1"
unset OMP_DEFAULT_DEVICE # does the obviousGNU GENERAL PUBLIC LICENSE // Version 2, June 1991
The OMPi Team, Parallel Processing Group, University of Ioannina