Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
17060 Discussions

Offload memory leak with v17 compiler

David_S_2
Beginner
1,034 Views

Apologies if this has been covered elsewhere.

I am seeing a small host-side memory leak per offload invocation with the 17.0.1 compiler.  Is this a known issue? I haven't managed to track down 17.0.2 update details - maybe its fixed there.  The 

To see the problem, compile the attached with icc -std=c99 intel_v17.c -o intel_v17 , run on a Phi system with  ./intel_v17 2 1000  and monitor the application memory use.

 

0 Kudos
3 Replies
Rajiv_D_Intel
Employee
1,034 Views

There's a memory allocation using memalign but I don't see a corresponding free on the host.

0 Kudos
David_S_2
Beginner
1,034 Views

Thanks for the response but that is a one-off memory allocation. The issue is the steady memory growth due to the offloads in the infinite loop while (a != 7).

 

0 Kudos
Rajiv_D_Intel
Employee
1,034 Views

A memory leak has been identified in the offload library and a fix has been made.

The 17.0 Update3 compiler scheduled for May'17 will have the fix.

0 Kudos
Reply