Example Projects

A forum for documenting the Parallella and Epiphany . (Not Q&A!)

Example Projects

Postby aolofsson » Thu Nov 05, 2015 4:57 pm

They say a working example is worth a 1,000 words....

I recommend starting your journey here:


User avatar
Posts: 1005
Joined: Tue Dec 11, 2012 6:59 pm
Location: Lexington, Massachusetts,USA

Re: Code Examples

Postby vivi » Fri Dec 18, 2015 12:07 pm


I am new to Adapteva. Could you please let me know that i have a FibonacciSeries.C application which is the output generated from my tool. From this point, how can i run my C application on epiphany cores, when i looked into Mandlebrot example i see that there is one host.c and Epiphany.c. Please let me know the steps.

Posts: 2
Joined: Fri Dec 04, 2015 8:40 am

Re: Code Examples

Postby DonQuichotte » Sat Apr 30, 2016 12:00 am


Search "Parallella Chronicles", you'll understand the "ARM" and "Epiphany" parts I think. I did.
The "Parallella examples" contain a few basic examples.
prime, mandelbrot, hello... they are good starting points.

I'm intending to write a small tutorial on that soon.
SPMD-oriented, for beginners.
Learning from my mistakes.
It will live on https://github.com/DonQuichotteComputers/paralle2
Tutorial #1 is just finished, it's intended to be a real starter kit for Parallella.

Parallella is a nice CPU :D
Have fun
User avatar
Posts: 46
Joined: Fri Apr 29, 2016 9:58 pm

Re: Code Examples

Postby daniel_dbb » Mon Aug 15, 2016 10:55 pm

Hello to all Parallella fans!

I have some projects with Parallella board. I am going to use GPIO for handling some peripherials such as TFT TouchScreen driver, GSM Modules, I/O Controlling and I2C to communicate with some interfaces.
Recently i tested https://github.com/parallella/parallella-utils/tree/master/gpio_dir and I have some questions:

1. using para_setgpio doesn't let me put a "solid" signal at any gpio port. Instead of Pulse with proramm controlled lenght I do constanly get only a sigle pulse of 4-8usec (glitch)
2. same problem with Blink - i don't get a pulse of desired length |----------|________| i get |-|_______________ where |-| is "1" at desired GpioPort with length 4-8usec
3. function CParaGpio::SetValue does NOT insert all pins at once, But as before (1st and 2nd question) i get |-| pulse and for each bit next shifted |-|
4. How can I activate 2nd I2C port? /dev/i2c-1

I did not change anything at gpio_dir example. What should I do (idea, example ...) to get proper output at gpio?

Any answer would help allot!

Parallella is board I have waited for a long time,
Posts: 6
Joined: Thu Jun 09, 2016 11:17 pm

Re: Code Examples

Postby microchips-n-dip » Sat Nov 19, 2016 4:27 am

Hi Parallella Community!

I'm working on some pretty computationally intensive AI projects. You can therefore imagine my interest in acquiring a few parallella boards. I only have one issue. I can't read the examples and by extension have no clue how to program the thing. I'm a decently experienced C++ user and I know the basics of MPI. If someone could walk me through either the code examples already in existence or how to program the board, I'd greatly appreciate it.

Posts: 1
Joined: Sat Nov 19, 2016 4:21 am

Re: Code Examples

Postby nickoppen » Sat Nov 19, 2016 7:05 am


I've written some blogs about getting going with programming on the parallella. I've got a bunch of them but probably the best getting started one is http://nicksparallellaideas.blogspot.com.au/2014/11/developing-opencl-with-codeblocks-on.html if you want to use code::blocks or http://nicksparallellaideas.blogspot.com.au/2014/08/opencl-on-parallella-using-eclipse.html if you want to use Eclipse (I suggest code::blocks). I'm working towards building a neural network simulator so some of my examples are from that project.

If you are just starting out with parallel programming and have never worked through the process of splitting up a task this might be interesting: http://nicksparallellaideas.blogspot.com.au/2013/09/parallel-neural-networks-carving-up-task.html. I wrote this before I recieved my board so I have not fully implemented the structure that I outlined in this post.

If you are familiar with parallel programming but unfamiliar with how you go about programming the Parallella board then this might be interesting: http://nicksparallellaideas.blogspot.com.au/2015/02/opencl-on-parallella-structure.html.

The examples quoted above (https://github.com/parallella/parallella-examples) cover various applications. They all use make files if you are more command line sort of programmer. They are more of the "nut-it-out-yourself" type examples with most having little documentation.

Sharing is what makes the internet Great!
User avatar
Posts: 266
Joined: Mon Dec 17, 2012 3:21 am
Location: Sydney NSW, Australia

Return to Quick Start Guides , Documentation, Examples (Start Here!)

Who is online

Users browsing this forum: No registered users and 0 guests