[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/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 2014-08-22T05:14:58+00:00 https://parallella.org/forums/feed.php?f=23&t=1660 2014-08-22T05:14:58+00:00 2014-08-22T05:14:58+00:00 https://parallella.org/forums/viewtopic.php?t=1660&p=10304#p10304 <![CDATA[Re: Slow Epiphany]]>
Thanks for the pointers.

I thought it wouldn't matter if I put them in the text section due to the way the epiphany works, why would there be a difference between .text and .data on the epiphany?

The variables were just put in a section as I was trying to make sure the linker was not putting them in slow ram when I was trying to work out why it was going slow.

Cheers

Andy

Statistics: Posted by AndyC — Fri Aug 22, 2014 5:14 am


]]>
2014-08-22T00:02:44+00:00 2014-08-22T00:02:44+00:00 https://parallella.org/forums/viewtopic.php?t=1660&p=10297#p10297 <![CDATA[Re: Slow Epiphany]]>
Oh and don't put your automatic variables in a section either. They should just end up in registers or at worst spill to the stack.

Statistics: Posted by notzed — Fri Aug 22, 2014 12:02 am


]]>
2014-08-21T16:54:45+00:00 2014-08-21T16:54:45+00:00 https://parallella.org/forums/viewtopic.php?t=1660&p=10285#p10285 <![CDATA[Re: Slow Epiphany]]> Statistics: Posted by AndyC — Thu Aug 21, 2014 4:54 pm


]]>
2014-08-21T13:51:04+00:00 2014-08-21T13:51:04+00:00 https://parallella.org/forums/viewtopic.php?t=1660&p=10281#p10281 <![CDATA[Re: Slow Epiphany]]> -fsingle-precision-constants compiler option.

Statistics: Posted by sebraa — Thu Aug 21, 2014 1:51 pm


]]>
2014-08-21T10:42:31+00:00 2014-08-21T10:42:31+00:00 https://parallella.org/forums/viewtopic.php?t=1660&p=10278#p10278 <![CDATA[Re: Slow Epiphany]]> Statistics: Posted by aolofsson — Thu Aug 21, 2014 10:42 am


]]>
2014-08-21T10:35:08+00:00 2014-08-21T10:35:08+00:00 https://parallella.org/forums/viewtopic.php?t=1660&p=10277#p10277 <![CDATA[Re: Slow Epiphany]]> Statistics: Posted by AndyC — Thu Aug 21, 2014 10:35 am


]]>
2014-08-21T10:30:29+00:00 2014-08-21T10:30:29+00:00 https://parallella.org/forums/viewtopic.php?t=1660&p=10276#p10276 <![CDATA[Re: Slow Epiphany]]> Statistics: Posted by AndyC — Thu Aug 21, 2014 10:30 am


]]>
2014-08-21T10:24:56+00:00 2014-08-21T10:24:56+00:00 https://parallella.org/forums/viewtopic.php?t=1660&p=10275#p10275 <![CDATA[Re: Slow Epiphany]]> Statistics: Posted by AndyC — Thu Aug 21, 2014 10:24 am


]]>
2014-08-21T10:20:01+00:00 2014-08-21T10:20:01+00:00 https://parallella.org/forums/viewtopic.php?t=1660&p=10274#p10274 <![CDATA[Re: Slow Epiphany]]> For example, with the constants you used, pretty sure that they get called in as doubles without a n f specifier. i.e. 1.0f If this is the case, then there will be lots of messy double/float conversion (and this code is read from DRAM!)
Andreas

Statistics: Posted by aolofsson — Thu Aug 21, 2014 10:20 am


]]>
2014-08-21T10:09:01+00:00 2014-08-21T10:09:01+00:00 https://parallella.org/forums/viewtopic.php?t=1660&p=10272#p10272 <![CDATA[Re: Slow Epiphany]]> Statistics: Posted by AndyC — Thu Aug 21, 2014 10:09 am


]]>
2014-08-21T09:37:26+00:00 2014-08-21T09:37:26+00:00 https://parallella.org/forums/viewtopic.php?t=1660&p=10270#p10270 <![CDATA[Re: Slow Epiphany]]> Statistics: Posted by AndyC — Thu Aug 21, 2014 9:37 am


]]>
2014-08-21T08:01:02+00:00 2014-08-21T08:01:02+00:00 https://parallella.org/forums/viewtopic.php?t=1660&p=10267#p10267 <![CDATA[Re: Slow Epiphany]]> Statistics: Posted by AndyC — Thu Aug 21, 2014 8:01 am


]]>
2014-08-21T07:28:44+00:00 2014-08-21T07:28:44+00:00 https://parallella.org/forums/viewtopic.php?t=1660&p=10265#p10265 <![CDATA[Re: Slow Epiphany]]> Statistics: Posted by AndyC — Thu Aug 21, 2014 7:28 am


]]>
2014-08-21T05:28:17+00:00 2014-08-21T05:28:17+00:00 https://parallella.org/forums/viewtopic.php?t=1660&p=10262#p10262 <![CDATA[Re: Slow Epiphany]]> Statistics: Posted by AndyC — Thu Aug 21, 2014 5:28 am


]]>
2014-08-20T23:54:18+00:00 2014-08-20T23:54:18+00:00 https://parallella.org/forums/viewtopic.php?t=1660&p=10256#p10256 <![CDATA[Re: Slow Epiphany]]>
viewtopic.php?f=13&t=1655

For on-core code the "easiest" "solution" is to hard-code the memory locations if you want to write to them from the arm - but this is really only easy for simple prototypes and doesn't scale. You can also read the memory on the core using dma (or e_memcpy iirc) so only the epiphany code needs to know it's local address. In general you want to do this anyway due to the fan-out of the number of cores. That just shifts the addressing problem to the shared memory though and it still needs a solution.

When I hit this problem last year my first solution was to use a script to extract the symbol offsets from the compiled elf file and turn them into a header file that I could include. The ARM code would then use the offsets to calculate on-core or shared-memory addresses "by hand". At least I could write code without having to manually implement a linker with pen and paper.

Putting everything in a single struct can help with the work involved. You can also use the linker to assign fixed addresses but TBH I find this even less acceptable because again you're literally using a pen and paper to do what the linker is supposed to be doing.

But that still sucked hard so I spent a couple of months writing my own solution based on a more realistic and flexible model of the cpu capabilities. However I have no idea if the "new sdk" with the new device driver will simply break all that: and if it breaks it too hard i'm not sure when (or even if) i would have it working again. I may just never "upgrade".

Elf is designed to be simple so it isn't much work to add symbolic lookup to the esdk. I was pretty amazed when I saw the initial solution of using srec files: I mean I though that was pretty arcane and clumsy when I used it once in uni around '91 and it's much less code to just read the elf file directly. I could understand it being used as a first-cut prototype to get something booted (actually not really) but it should never have been part of the public release.

You really shouldn't be using volatile for any of those pointers fwiw.

Statistics: Posted by notzed — Wed Aug 20, 2014 11:54 pm


]]>