<?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: Linking Fortran Objects with dpcpp objects in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Linking-Fortran-Objects-with-dpcpp-objects/m-p/1386995#M161499</link>
    <description>&lt;P&gt;The OneAPI Fortran compiler is ifx. Try linking with the ifx compiler (you may also need to build your Fortran sources with ifx). Please report back on your success or failure in using ifx in lieu of ifort.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
    <pubDate>Tue, 24 May 2022 14:10:12 GMT</pubDate>
    <dc:creator>jimdempseyatthecove</dc:creator>
    <dc:date>2022-05-24T14:10:12Z</dc:date>
    <item>
      <title>Linking Fortran Objects with dpcpp objects</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Linking-Fortran-Objects-with-dpcpp-objects/m-p/1386790#M161496</link>
      <description>&lt;P&gt;I am working on a mixed language program that involves Fortran and Data Parallel C++ code. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;When previously working on mixed language projects, I have followed the recommended procedure of linking all of the objects with ifort such that the Fortran runtimes are linked properly. &amp;nbsp;This is because of the long list of varying runtime libraries that are typically involved with Fortran linking. &amp;nbsp;When C++ code is involved this would involve linking the single, additional libstdc++ library with the ifort link command.&lt;/P&gt;
&lt;P&gt;However, now with dpcpp under Linux, when I link with ifort (adding&amp;nbsp;&lt;SPAN&gt;-lsycl&lt;/SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;SPAN&gt;-lstdc&lt;/SPAN&gt;&lt;SPAN&gt;++)&lt;/SPAN&gt;, the resulting executable fails to run, instead throwing a "&lt;SPAN&gt;cl::sycl::runtime_error".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If I instead link with dpcpp, providing&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;-lifcore and .../&lt;/SPAN&gt;&lt;SPAN&gt;compiler/lib/intel64_lin/&lt;/SPAN&gt;&lt;SPAN&gt;for_main.o, the resulting executable runs as expected.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have also tried linking with&amp;nbsp;&lt;/SPAN&gt;icpx and the resulting executable again throws&amp;nbsp;"&lt;SPAN&gt;cl::sycl::runtime_error".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is it possible to link a Data Parallel C++ executable, with dpcpp generated fat objects, using the ifort or ifx compilers to obtain a functional executable that runs on the device?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I can provide a reproducer if necessary, but thought I'd start by asking the question.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 02:41:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Linking-Fortran-Objects-with-dpcpp-objects/m-p/1386790#M161496</guid>
      <dc:creator>William_Jones</dc:creator>
      <dc:date>2022-05-24T02:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Linking Fortran Objects with dpcpp objects</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Linking-Fortran-Objects-with-dpcpp-objects/m-p/1386955#M161497</link>
      <description>Hi&lt;BR /&gt;I'm interested in the topics you have ifind it excellent advanced thanks&lt;BR /&gt;Best wishes,&lt;BR /&gt;</description>
      <pubDate>Tue, 24 May 2022 11:12:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Linking-Fortran-Objects-with-dpcpp-objects/m-p/1386955#M161497</guid>
      <dc:creator>Bahamas2021</dc:creator>
      <dc:date>2022-05-24T11:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Linking Fortran Objects with dpcpp objects</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Linking-Fortran-Objects-with-dpcpp-objects/m-p/1386995#M161499</link>
      <description>&lt;P&gt;The OneAPI Fortran compiler is ifx. Try linking with the ifx compiler (you may also need to build your Fortran sources with ifx). Please report back on your success or failure in using ifx in lieu of ifort.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 14:10:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Linking-Fortran-Objects-with-dpcpp-objects/m-p/1386995#M161499</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2022-05-24T14:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Linking Fortran Objects with dpcpp objects</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Linking-Fortran-Objects-with-dpcpp-objects/m-p/1387018#M161504</link>
      <description>&lt;P&gt;Thank you for the response, but as I implied in the original post, I have already tried ifx without success. &amp;nbsp;The results are the same as linking with ifort, it throws the exception.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 15:02:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Linking-Fortran-Objects-with-dpcpp-objects/m-p/1387018#M161504</guid>
      <dc:creator>William_Jones</dc:creator>
      <dc:date>2022-05-24T15:02:55Z</dc:date>
    </item>
    <item>
      <title>Re:Linking Fortran Objects with dpcpp objects</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Linking-Fortran-Objects-with-dpcpp-objects/m-p/1387026#M161505</link>
      <description>&lt;P&gt;I helped another user with a similar issue.  The Fortran code does not offload. This worked for him:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;+ dpcpp -c device.cpp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;+ ifx -qopenmp -fsycl host.f90 device.o -lstdc++ -lOpenCL -lsycl&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 May 2022 15:22:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Linking-Fortran-Objects-with-dpcpp-objects/m-p/1387026#M161505</guid>
      <dc:creator>Barbara_P_Intel</dc:creator>
      <dc:date>2022-05-24T15:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Linking Fortran Objects with dpcpp objects</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Linking-Fortran-Objects-with-dpcpp-objects/m-p/1387047#M161508</link>
      <description>&lt;P&gt;Thank you! &amp;nbsp;The "-qopenmp" and "-fsycl" command line options to ifx were what fixed it for me. &amp;nbsp;Thanks again!&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 16:41:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Linking-Fortran-Objects-with-dpcpp-objects/m-p/1387047#M161508</guid>
      <dc:creator>William_Jones</dc:creator>
      <dc:date>2022-05-24T16:41:14Z</dc:date>
    </item>
  </channel>
</rss>

