- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'd need to see a complete program - sometimes Inspector doesn't understand Fortran as well as it could, but it is getting better.
The memory leak for DATE_AND_TIME would probably be inside the library routine - rather interesting. I will try some experiments with this myself. There's nothing wrong with your code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The IVF documentation states INTEGER, not INTEGER(4).
Compile with /warn:interfaces
Regardless of this, the CALL should not have caused a memory leak (unless the runtime library has an error, or looks like it has an error).
Regarding the ALLOCATE. How large are your allocations? (what is N5)
Also, in your type declaration for C_EIGEN, use
COMPLEX(8), POINTER :: VAL(:) => NULL()
COMPLEX(8), POINTER :: VEC(:,:) => NULL()
Then prior to ALLOCATE insert a sanity check:
IF(ASSOCIATED(CEIG%VAL) .OR. ASSOCIATED(CEIG%VEC)) THEN
WRITE(*,*) "You have a bug" ! place break on this line
ENDIF
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok, looked into this some more. The "leak" is in the Microsoft Visual C++ DLL library and is harmless. There is only one allocation of the memory per thread, and it can't be deallocated. You need not be concerned about it, though you're quite right to ask.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do a Build > Clean on the solution and then try zipping it again. In my experience, Inspector often finds real things, but sometimes there are issues you can't do anything about and other times they're false positives. We continue to work on improving it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok. I did the clean and rebuilt the project. I've cleaned up about 5 or so minor things that the Inspector found, but these were all pretty harmless. The Inspector is still telling me I've got about 40 memory leak and invalid memory access errors which don't make any sense at all.
How do you want me to send you the zip file? I don't want to post it to the forum.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use "Send Author A Message" and attach it there, you can email it to me at Steve.Lionel at intel dot com, or you can use Intel Premier Support and ask that the issue be assigned to me.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page