<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: /iface:cvf and OPENMP in Fortran in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/iface-cvf-and-OPENMP-in-Fortran/m-p/976491#M5626</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hello Carlos,&lt;/DIV&gt;
&lt;DIV&gt;What version of the Intel Fortran compiler are you using on Windows? I'm using the Intel Fortran 7.1 compiler, which has&lt;STRONG&gt;/iface:default &lt;/STRONG&gt;(enables CVF calling convention compatibility) and&lt;STRONG&gt;/iface:stdref &lt;/STRONG&gt;options but not &lt;STRONG&gt;/iface:cvf&lt;/STRONG&gt;. I'm able to use either &lt;STRONG&gt;/iface:default &lt;/STRONG&gt;or &lt;STRONG&gt;/iface:stdref &lt;/STRONG&gt;with the &lt;STRONG&gt;/Qopenmp &lt;/STRONG&gt;option to compile an OpenMP program.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Best regards,&lt;/DIV&gt;
&lt;DIV&gt;Henry&lt;/DIV&gt;</description>
    <pubDate>Tue, 06 Jan 2004 02:15:39 GMT</pubDate>
    <dc:creator>Henry_G_Intel</dc:creator>
    <dc:date>2004-01-06T02:15:39Z</dc:date>
    <item>
      <title>/iface:cvf and OPENMP in Fortran</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/iface-cvf-and-OPENMP-in-Fortran/m-p/976490#M5625</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="3"&gt;Hello,&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="3"&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="3"&gt;I have been playing with OPENMP and Fortan in both Windows and Linux platforms. In Windows, I have noticed that &lt;/FONT&gt;&lt;FONT size="3"&gt;whenever I set the /iface:cvf compiler flag and, of course, alsouse /Qopenmp, &lt;/FONT&gt;&lt;FONT size="3"&gt;I get the following linking error:&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="1"&gt;
&lt;P&gt;Linking...&lt;/P&gt;
&lt;P&gt;LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library&lt;/P&gt;
&lt;P&gt;libguide40.lib(kmp_ftn_stdcall_import.lobj) : error LNK2019: unresolved external symbol _kmp_set_library_gang referenced in function _KMP_SET_LIBRARY_GANG@0&lt;/P&gt;
&lt;P&gt;Debug/HelloWorldOpenMP.exe : fatal error LNK1120: 1 unresolved external&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;This type of linking error happens with all Fortran-External Procedures-Calling Conventions, but the C, REFERENCE flag. &lt;/FONT&gt;&lt;FONT size="3"&gt;&lt;FONT size="3"&gt;Anyway, I wonder if the error I get is because the libraries we have are not up to date, or for some reason the /iface:CVF flag is not compatible with the /Qopenmp compiler flag.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;We want to parallelize out power systems applications, most of the code is in FORTRAN, but we also use C and C++ to implemet some parts of our system. I think that this is the reason why in our build procedures we need to have the /iface:cvf flag set.&lt;/P&gt;
&lt;P&gt;For completeness I have attached a small HelloWorld program where this happens (though I think it is not needed to reproduce this problem).&lt;/P&gt;
&lt;P&gt;I appreciate any help with this issue.&lt;/P&gt;
&lt;P&gt;Thanks, &lt;/P&gt;
&lt;P&gt;Carlos&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 03 Jan 2004 08:04:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/iface-cvf-and-OPENMP-in-Fortran/m-p/976490#M5625</guid>
      <dc:creator>carlos_zamora</dc:creator>
      <dc:date>2004-01-03T08:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: /iface:cvf and OPENMP in Fortran</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/iface-cvf-and-OPENMP-in-Fortran/m-p/976491#M5626</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hello Carlos,&lt;/DIV&gt;
&lt;DIV&gt;What version of the Intel Fortran compiler are you using on Windows? I'm using the Intel Fortran 7.1 compiler, which has&lt;STRONG&gt;/iface:default &lt;/STRONG&gt;(enables CVF calling convention compatibility) and&lt;STRONG&gt;/iface:stdref &lt;/STRONG&gt;options but not &lt;STRONG&gt;/iface:cvf&lt;/STRONG&gt;. I'm able to use either &lt;STRONG&gt;/iface:default &lt;/STRONG&gt;or &lt;STRONG&gt;/iface:stdref &lt;/STRONG&gt;with the &lt;STRONG&gt;/Qopenmp &lt;/STRONG&gt;option to compile an OpenMP program.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Best regards,&lt;/DIV&gt;
&lt;DIV&gt;Henry&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Jan 2004 02:15:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/iface-cvf-and-OPENMP-in-Fortran/m-p/976491#M5626</guid>
      <dc:creator>Henry_G_Intel</dc:creator>
      <dc:date>2004-01-06T02:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: /iface:cvf and OPENMP in Fortran</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/iface-cvf-and-OPENMP-in-Fortran/m-p/976492#M5627</link>
      <description>&lt;P&gt;Thanks Henry for your reply,&lt;/P&gt;
&lt;P&gt;From theHelp-About menu:&lt;/P&gt;
&lt;P&gt;Intel Fortran Compiler Integration for Microsoft Visual Studio .NET 2003, Version 8.0.1877.2003&lt;/P&gt;
&lt;P&gt;I have the following options set for the HelloOMP program:&lt;/P&gt;
&lt;P&gt;/nologo /Zi /Od /Qopenmp /iface:cvf /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /dbglibs /c&lt;/P&gt;
&lt;DIV&gt;I am able to compile with /iface:default, but not with the /iface:stdref and /iface:cvf flags (of course with the /Qopenmp compiler flag). Moreover&lt;/DIV&gt;
&lt;DIV&gt;I get different errors with these two flags:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;1.- With the /iface:cvf flag&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="1"&gt;
&lt;P&gt;------ Build started: Project: HelloWorldOpenMP, Configuration: Debug Win32 ------&lt;/P&gt;
&lt;P&gt;Compiling...&lt;/P&gt;
&lt;P&gt;HelloWorldOpenMP.f90&lt;/P&gt;
&lt;P&gt;ifort: Command line warning: openmp requires C style preprocessing; using fpp to preprocess&lt;/P&gt;
&lt;P&gt;Linking...&lt;/P&gt;
&lt;P&gt;LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library&lt;/P&gt;
&lt;P&gt;libguide40.lib(kmp_ftn_stdcall_import.lobj) : error LNK2019: unresolved external symbol _kmp_set_library_gang referenced in function _KMP_SET_LIBRARY_GANG@0&lt;/P&gt;
&lt;P&gt;Debug/HelloWorldOpenMP.exe : fatal error LNK1120: 1 unresolved externals&lt;/P&gt;
&lt;P&gt;Build log written to file://D:userscazHelloWorldOpenMPHelloWorldOpenMPDebugBuildLog.txt&lt;/P&gt;
&lt;P&gt;HelloWorldOpenMP build failed.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;---------------------- Done ----------------------&lt;/P&gt;
&lt;P&gt;Build: 0 succeeded, 1 failed, 0 skipped&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;1.- With the /iface:stdref flag&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size="1"&gt;
&lt;P&gt;------ Build started: Project: HelloWorldOpenMP, Configuration: Debug Win32 ------&lt;/P&gt;
&lt;P&gt;Compiling...&lt;/P&gt;
&lt;P&gt;HelloWorldOpenMP.f90&lt;/P&gt;
&lt;P&gt;ifort: Command line warning: openmp requires C style preprocessing; using fpp to preprocess&lt;/P&gt;
&lt;P&gt;Linking...&lt;/P&gt;
&lt;P&gt;HelloWorldOpenMP.obj : error LNK2019: unresolved external symbol _omp_get_max_threads@0 referenced in function _main__&lt;/P&gt;
&lt;P&gt;HelloWorldOpenMP.obj : error LNK2019: unresolved external symbol _omp_get_thread_num@0 referenced in function ___main__&lt;/P&gt;
&lt;P&gt;libifcoremt.lib(libifcoremain.obj) : error LNK2019: unresolved external symbol _MAIN__ referenced in function _main&lt;/P&gt;
&lt;P&gt;Debug/HelloWorldOpenMP.exe : fatal error LNK1120: 3 unresolved externals&lt;/P&gt;
&lt;P&gt;Build log written to file://D:userscazHelloWorldOpenMPHelloWorldOpenMPDebugBuildLog.txt&lt;/P&gt;
&lt;P&gt;HelloWorldOpenMP build failed.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;---------------------- Done ----------------------&lt;/P&gt;
&lt;P&gt;Build: 0 succeeded, 1 failed, 0 skipped&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;FONT size="3"&gt;As I said before, this problem may be related to the library versions that we have. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Thanks again,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Carlos&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2004 05:38:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/iface-cvf-and-OPENMP-in-Fortran/m-p/976492#M5627</guid>
      <dc:creator>carlos_zamora</dc:creator>
      <dc:date>2004-01-06T05:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: /iface:cvf and OPENMP in Fortran</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/iface-cvf-and-OPENMP-in-Fortran/m-p/976493#M5628</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hi Carlos,&lt;/DIV&gt;
&lt;DIV&gt;Thanks for sending your test program. I wasn't able to reproduce the error with the Intel Fortran 8.0 compiler. Please submit this issue to &lt;A href="http://www.intel.com/software/products/support/#premier" target="_blank"&gt;Intel Premier Support&lt;/A&gt;.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Best regards,&lt;/DIV&gt;
&lt;DIV&gt;Henry&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Jan 2004 07:15:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/iface-cvf-and-OPENMP-in-Fortran/m-p/976493#M5628</guid>
      <dc:creator>Henry_G_Intel</dc:creator>
      <dc:date>2004-01-08T07:15:38Z</dc:date>
    </item>
  </channel>
</rss>

