[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]/feed.php on line 173: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 174: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Parallella Community Supercomputing for Everyone 2015-06-12T01:55:47+00:00 https://parallella.org/forums/feed.php?f=13&t=2482 2015-06-12T01:55:47+00:00 2015-06-12T01:55:47+00:00 https://parallella.org/forums/viewtopic.php?t=2482&p=14387#p14387 <![CDATA[Re: Shared dram and eCore local memory]]> Statistics: Posted by Anthony — Fri Jun 12, 2015 1:55 am


]]>
2015-06-11T21:20:47+00:00 2015-06-11T21:20:47+00:00 https://parallella.org/forums/viewtopic.php?t=2482&p=14384#p14384 <![CDATA[Re: Shared dram and eCore local memory]]> Statistics: Posted by skinner — Thu Jun 11, 2015 9:20 pm


]]>
2015-06-10T03:27:00+00:00 2015-06-10T03:27:00+00:00 https://parallella.org/forums/viewtopic.php?t=2482&p=14352#p14352 <![CDATA[Re: Shared dram and eCore local memory]]>
Unfortunately i don't have the time to write a full answer but i just realised that i forgot the don't in the you "don't have to" use e_alloc even though i think it's better to use it. I'll try to write a full answer to your question later !

Thomas.

Statistics: Posted by skinner — Wed Jun 10, 2015 3:27 am


]]>
2015-06-10T02:06:00+00:00 2015-06-10T02:06:00+00:00 https://parallella.org/forums/viewtopic.php?t=2482&p=14351#p14351 <![CDATA[Re: Shared dram and eCore local memory]]> Statistics: Posted by Anthony — Wed Jun 10, 2015 2:06 am


]]>
2015-06-09T22:01:45+00:00 2015-06-09T22:01:45+00:00 https://parallella.org/forums/viewtopic.php?t=2482&p=14346#p14346 <![CDATA[Re: Shared dram and eCore local memory]]>
From my point of view you have to use e_alloc to use the shared memory. As far as i understand the only difference between using e_alloc and directly reading/writing into the memory is that the e_alloc function while take care of things like basic offset into the shared space and stuff like that while if you only use e_write and e_read, you will have to do some checking for the addresses yourself.

Hope it answers your question !

Thomas.

Statistics: Posted by skinner — Tue Jun 09, 2015 10:01 pm


]]>
2015-06-07T09:24:37+00:00 2015-06-07T09:24:37+00:00 https://parallella.org/forums/viewtopic.php?t=2482&p=14280#p14280 <![CDATA[Re: Shared dram and eCore local memory]]>
regards

Anthony

Statistics: Posted by Anthony — Sun Jun 07, 2015 9:24 am


]]>
2015-06-05T14:19:57+00:00 2015-06-05T14:19:57+00:00 https://parallella.org/forums/viewtopic.php?t=2482&p=14245#p14245 <![CDATA[Re: Shared dram and eCore local memory]]>
Glad my answer helped you :)

I'm not qualified enough to tell if your code is wrong but i do think you should first try to open a shared memory segment on the host side that would be accessible for both the host and the epiphany.

As I stated in my recent post (viewtopic.php?f=13&t=2500) there seems to be two functions aiming at allocating some shared memory (in the external SDRAM). You can have their full prototypes directly in the headers of e-hal-api library or in the eSDK official documentation (http://www.adapteva.com/docs/epiphany_arch_ref.pdf).

Once you opened the shared memory space in the host program, you can then write or read anything in it from the host or device side. On the device side however you need to access the previously created memory space. If you used e_allocate, you only have to read/write in the correct address space but if you used e_shm_allocate then you will have to "attach" the memory segment onto the eCore by calling e_shm_attach.

For further details, the official reference manual is very well done and explain a lot of things. Although I'm quite sure it doesn't mention the e_shm_xxx functions so you could give a look at the included headers (see the sdk/epiphany-libs/tools/include directory) and, for example the hello-world sample given on the parallella distribution.

Regards,

Thomas.

Statistics: Posted by skinner — Fri Jun 05, 2015 2:19 pm


]]>
2015-06-05T08:52:13+00:00 2015-06-05T08:52:13+00:00 https://parallella.org/forums/viewtopic.php?t=2482&p=14237#p14237 <![CDATA[Re: Shared dram and eCore local memory]]> Statistics: Posted by Anthony — Fri Jun 05, 2015 8:52 am


]]>
2015-06-04T15:56:02+00:00 2015-06-04T15:56:02+00:00 https://parallella.org/forums/viewtopic.php?t=2482&p=14214#p14214 <![CDATA[Re: Shared dram and eCore local memory]]> Statistics: Posted by skinner — Thu Jun 04, 2015 3:56 pm


]]>
2015-06-03T03:12:01+00:00 2015-06-03T03:12:01+00:00 https://parallella.org/forums/viewtopic.php?t=2482&p=14170#p14170 <![CDATA[Shared dram and eCore local memory]]> Statistics: Posted by Anthony — Wed Jun 03, 2015 3:12 am


]]>