- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a Fortran modeling library that started giving NaNs where it was previously giving reasonable numbers. The only change was going from the IFORT compiler to IFX. I need to test with the older compiler. Since my computer is only about 1 month old, I only have 2025.2.1 installed. I have been able to download the base toolkit 2024.2.1, but I have not found a link to the corresponding HPC toolkit.
I usually only have one Fortran install on my computer. Is there any issues with having multiple versions installed?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
IFORT is no longer supplied by Intel. Rather than hunt around for different compilers why mot use the debugger to fins why the nans are made. It could be a non conformance (bug) in your code that just happens to be exposed by a different compiler/options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Although I have debugged into the Fortran DLL many times in the past, it does not seem to want to work today. I am calling the Fortran from C++ and the C++ from C#. Sometimes the native code debugging just stops working, and it is difficult to figure out why, since I never touch those settings.
If there is non-compliant Fortran code, it has been working for 15+ years.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"If there is non-compliant Fortran code, it has been working for 15+ years." - probably/possibly but no guarantee! Why not add a few isnan calls at some strategic locations in the Fortran code to at least try to isolate where the first nan appears and then home in on the why....
ISNAN is elemental so you can also apply any(isnan(myarray)).....
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page