- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am compiling a c++ project. When using the c/c++|code generation|basic runtime checks|both (/RTC1, equiv. to /RTCsu), it works well. However, the compiled code runs slowly, a benchmark needs 27.7s, in contrast, another version compiled by microsoft VC++ spent only 13.6s.
If I use c/c++|code generation|basic runtime checks|default, then the following error messages occur:
1>Linking... (Intel C++ Environment)
1>ipo: remark #11000: performing multi-file optimizations
1>ipo: remark #11005: generating object file .\\release.obj
1>ipo-1: remark #11004: starting multi-object compilation
1>ipo-1: remark #11005: generating object file .\\release1.obj
1>ipo-2: remark #11004: starting multi-object compilation
1>ipo-2: remark #11005: generating object file .\\release2.obj
1>xilink: executing 'link'
1>release.obj : error LNK2001:unrecognized external symbol_xdrstdio_putint32
1>release.obj : error LNK2001:unrecognized external symbol _xdrstdio_getuint32
........................
I wander how to optimize the project with IPO correctly.
The correct command line but not optimized is as follows:
/GL /c /O3 /Oi /Qfp_port /Ot /I "..\\..\\..\\FFTW2.1.3.Win32\\fftw" /I "../../lib/atc" /I "../../src/xtc" /I "../../src/user-smd" /I "../../src/user-ewaldn" /I "../../src/user-cg-cmm" /I "../../src/user-ackland" /I "../../src/poems" /I "../../src/peri" /I "../../src/opt" /I "../../src/molecule" /I "../../src/kspace" /I "../../src/granular" /I "../../src/dipole" /I "../../src/colloid" /I "../../src/class2" /I "../../src/asphere" /I "../../src/meam" /I "C:\\Program Files\\MPICH2\\include" /I "../../lib/fftw" /I "./" /I "../../lib/poems" /I "../../src/MAKE/Windows" /I "../../src" /I "../../src/dsmc" /D "_CRT_SECURE_NO_DEPRECATE" /D "MPICH_IGNORE_CXX_SEEK" /D "_X86_" /D "_MBCS" /FD /EHsc /RTC1 /MT /GS /Gy /GR /Fo".\\release\\\\" /W3 /nologo /Zi /Gd /Qfp-speculationfast
Thanks very much
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, aujjww
Thank you for raising this issue. We're interested in reproducing your issue.Could you tell us your compiler version andany small test case to demonstrate the failure?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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