- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In a mixed Fortran and C++ program, I'm getting incorrect results if the -ipo switch is used.
This happens with Intel 12.1.0. I can get the correct results by doing one of these things:
* Switch off -ipo
* Go back to Intel 10.1
* Insert printf code in a specific place (commented in the example code)
* or link with icpc instead of ifort
I compile with these commands:
ifort -ipo -c demo.f90 -o demo.o
icpc -ipo -c findnearest.cc -o findnearest.o
ifort demo.o findnearest.o -o demo -cxxlib
I've attached demo.f90 and findnearest.cc. Correct output is a list of coordinates around a center, with ipo some of the coordinates are garbage or zero.
Am I missing something in the compilation commands? Should ifort not be used when linking mixed programs? Or could this be a bug in IPO?
Thanks!
- Joe
This happens with Intel 12.1.0. I can get the correct results by doing one of these things:
* Switch off -ipo
* Go back to Intel 10.1
* Insert printf code in a specific place (commented in the example code)
* or link with icpc instead of ifort
I compile with these commands:
ifort -ipo -c demo.f90 -o demo.o
icpc -ipo -c findnearest.cc -o findnearest.o
ifort demo.o findnearest.o -o demo -cxxlib
I've attached demo.f90 and findnearest.cc. Correct output is a list of coordinates around a center, with ipo some of the coordinates are garbage or zero.
Am I missing something in the compilation commands? Should ifort not be used when linking mixed programs? Or could this be a bug in IPO?
Thanks!
- Joe
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Joe,
This is a bug in IPO. I have escalated it to the developers. The issue number is DPD200182313. I will post any updates on this issue to this thread.
Regards,
Annalee
Intel Developer Support
This is a bug in IPO. I have escalated it to the developers. The issue number is DPD200182313. I will post any updates on this issue to this thread.
Regards,
Annalee
Intel Developer Support

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