[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 - Memory allocation problems in epiphany chip

Memory allocation problems in epiphany chip

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

Memory allocation problems in epiphany chip

Postby omar » Fri Mar 13, 2015 3:48 pm

omar
 
Posts: 5
Joined: Wed Mar 11, 2015 2:46 pm

Re: Memory allocation problems in epiphany chip

Postby piotr5 » Fri Mar 13, 2015 7:27 pm

yes. allocate mem for hashTable. then allocate mem for each node you create. also allocate enough space for the "node **lists" to store all the pointers contained in hashTable. i.e. "lists" isn't contained in hashTable as you claim, you need to treat it as if it were just a reference to an array of pointers you have to create manually. or did you mean lists to point inside of the int-array node.arr?
piotr5
 
Posts: 230
Joined: Sun Dec 23, 2012 2:48 pm

Re: Memory allocation problems in epiphany chip

Postby omar » Fri Mar 13, 2015 11:16 pm

omar
 
Posts: 5
Joined: Wed Mar 11, 2015 2:46 pm

Re: Memory allocation problems in epiphany chip

Postby piotr5 » Sat Mar 14, 2015 8:47 am

haven't looked at the details, so my view might be unjustified: I'm not sure how your approach actually could work. on one core you allocate space and then free it on another core. does that really work? if there is an allocation-table in shared memory, wouldn't that cause trouble once you communicate through eLink north/south? imho you need to create your own memory-manager. it's suspicious that you are using the command free() and not whatever found in eSDK...
piotr5
 
Posts: 230
Joined: Sun Dec 23, 2012 2:48 pm


Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 16 guests

cron