by manklee » Tue Sep 16, 2014 6:42 am
I know why!
You HAVE to run it in the bin directory because of this line of code:
e_load_group("e_task.srec", &dev, 0, 0, platform.rows, platform.cols, E_TRUE);
It wants to load the array of processors with the file "e_task.srec" and you can only find it in the bin directory. I suppose if you changed the code to:
e_load_group("bin/e_task.srec", &dev, 0, 0, platform.rows, platform.cols, E_TRUE);
Then you can run it from where the shell scripts are, the "dotproduct" directory.
I ran it from the bin directory by typing
../run.sh
and I got this from the program:
All cores loaded and running
All cores done calculations.
Results copied to host
Sum of Product Is 4096!
/home/linaro/epiphany-examples/apps/dotproduct/run.sh PASSED