I am running a matrix multiplication program, in which I:
-use as input two text files containing square matrices
-malloc space for the input matrices as well as the resulting matrix
-multiply using Open MP
-use TSCL to record the runtime of the matrix calculation
-do the multiplication multiple times and get multiple values for the runtime
-print the results of the multiplication to the console.
I have it loop through matrices of different sizes. Each time, I run free on all instances of malloc before looping. Yet after a few loops, the heap memory still gets filled and I get the following error:
[C66xx_0] ti.sdo.ipc.heaps.HeapMemMP: line 740: E_memory: Out of memory: handle=0x800418, size=896ti.sdo.ipc.heaps.HeapMemMP: line 740: E_memory: Out of memory: handle=0x800418, size=896
My CCS General settings are as folows:
Compiler: TI v7.4.0B2
EDMA3 Low Level Driver 2.11.5
XDCtools version 126.96.36.199
I have tried scanning through the matrix files in both directions, reducing the number of times I repeat the multiplication per matrix size. It seems related to the size of the data, since the number of matrices the program can multiply before giving me that error decreases as the average size of my matrices increases.
It sounds like there is a memory leak somewhere. Can you try looking at HeapMemMP in ROV (under Tools in CCS)? You can run to a good point and halt the processor. Look at HeapMemMP in ROV. Then run one iteration, halt and check out ROV again. This will help you determine if there is a leak or not.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.