[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Parallella Community • View topic - Iterating host code: Parallella restarts

Iterating host code: Parallella restarts

Any technical questions about the Epiphany chip and Parallella HW Platform.

Moderator: aolofsson

Iterating host code: Parallella restarts

Postby gordon » Fri Jun 16, 2017 7:13 am

gordon
 
Posts: 24
Joined: Mon May 29, 2017 10:37 am

Re: Iterating host code: Parallella restarts

Postby sebraa » Fri Jun 16, 2017 10:51 am

Open the Epiphany once before the first iteration, and close it after the last one. Opening/Closing the Epiphany repeatedly may not work (or may stop working after a while). It is better to structure your code so that it can do multiple runs without a full system reset.
sebraa
 
Posts: 495
Joined: Mon Jul 21, 2014 7:54 pm

Re: Iterating host code: Parallella restarts

Postby gordon » Fri Jun 16, 2017 11:40 am

gordon
 
Posts: 24
Joined: Mon May 29, 2017 10:37 am

Re: Iterating host code: Parallella restarts

Postby sebraa » Mon Jun 19, 2017 9:58 am

sebraa
 
Posts: 495
Joined: Mon Jul 21, 2014 7:54 pm

Re: Iterating host code: Parallella restarts

Postby gordon » Tue Jun 20, 2017 5:02 am

I can't iterate the cores itself because in my case, there are two different device programs to be executed on two different set of cores i.e the diagonal and non diagonal cores. Unless the diagonal cores program finishes its execution I can't start the other program because it takes in the values returned by the first program. So for the second iteration to start on the non diagonal cores, I somehow need to run the second iteration of the diagonal cores first and then send the values to the non diagonal cores via the host and then begin the execution. Can you help me in this direction?
gordon
 
Posts: 24
Joined: Mon May 29, 2017 10:37 am

Re: Iterating host code: Parallella restarts

Postby sebraa » Tue Jun 20, 2017 7:54 am

sebraa
 
Posts: 495
Joined: Mon Jul 21, 2014 7:54 pm

Re: Iterating host code: Parallella restarts

Postby gordon » Tue Jun 20, 2017 10:50 am

Actually, after one iteration the host code appends all results into a single 8X8 matrix and then there is swapping of rows and columns.The new matrix is again split and then written to the 16 cores. So actually if we take the example of a diagonal core, the result of first iteration can't be again used for 2nd iteration because it few elements of it need to be used by some other core and few by other.
gordon
 
Posts: 24
Joined: Mon May 29, 2017 10:37 am

Re: Iterating host code: Parallella restarts

Postby sebraa » Thu Jun 22, 2017 3:12 pm

Still, the barriers are a useful synchronization primitive.
- Step 1: diagonal cores do math
- Step 2: swapping phase
- Step 3: non-diagonal cores do math
- Step 4: return result to host, let host send new data
- Repeat.

In any case, you do not want to restart the Epiphany system for every invocation of your program, but instead have the cores handle multiple iterations. For good performance, you want to avoid any host-communication anyway.
sebraa
 
Posts: 495
Joined: Mon Jul 21, 2014 7:54 pm

Re: Iterating host code: Parallella restarts

Postby gordon » Fri Jun 23, 2017 6:35 am

gordon
 
Posts: 24
Joined: Mon May 29, 2017 10:37 am

Re: Iterating host code: Parallella restarts

Postby sebraa » Fri Jun 23, 2017 10:34 am

Well, as I've told you, access to the host is very slow, especially if your access pattern is not optimal.

Use consecutive addresses (burst transfers): Otherwise you lose 75% throughput.
Use 64-bit accesses: Otherwise you lose 50% throughput.
Use writes: Reads incur high latency; read requests travel at 12.5% speed only; reads do not allow bursts.

The theoretical maximum throughput on the Parallella is 600 MB/s (with the Epiphany running at 600 MHz), but I know if anyone has ever achieved this. 150 MB/s are a more realistic estimate. As far as my experience goes, the internal communication speed was never an issue.
sebraa
 
Posts: 495
Joined: Mon Jul 21, 2014 7:54 pm

Next

Return to Epiphany and Parallella Q & A

Who is online

Users browsing this forum: No registered users and 4 guests