<?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: ifx compiler error #8945: Generalized I/O not supported in an offload region. in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-compiler-error-8945-Generalized-I-O-not-supported-in-an/m-p/1349072#M159191</link>
    <description>&lt;P&gt;According to the Fortran developers, "At this time, the only I/O we’re allowing in an offload region is 'print *' and even that is limited to numeric and character strings."&lt;/P&gt;
&lt;P&gt;I'll add that tidbit to the &lt;A href="https://www.intel.com/content/www/us/en/developer/articles/guide/porting-guide-for-ifort-to-ifx.html" target="_blank" rel="noopener"&gt;Porting Guide for ifort Users to ifx&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jan 2022 16:22:49 GMT</pubDate>
    <dc:creator>Barbara_P_Intel</dc:creator>
    <dc:date>2022-01-06T16:22:49Z</dc:date>
    <item>
      <title>ifx compiler error #8945: Generalized I/O not supported in an offload region.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-compiler-error-8945-Generalized-I-O-not-supported-in-an/m-p/1348308#M159167</link>
      <description>&lt;P&gt;Compiling the snippet:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;!$omp target
      write(*,*)1234
!$omp end target
&lt;/LI-CODE&gt;
&lt;P&gt;generates the error:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ifx -qopenmp -fopenmp-targets=spir64 -g -traceback  -c tbp.F90
tbp.F90(53): error #8945: Generalized I/O not supported in an offload region.
      write(*,*)1234
------^
compilation aborted for tbp.F90 (code 1)
&lt;/LI-CODE&gt;
&lt;P&gt;Note: Simple write statements to standard output from an OpenACC offload region are supported by the Nvidia (PGI) compiler.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Questions:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Is it possible to have debugging output in a target region of a Fortran program using OpenMP offload and compiling with ifx?&lt;/LI&gt;
&lt;LI&gt;If this is not currently supported, are there plans for ifx to support simple output from target regions in the future?&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Any other suggestions for inspecting the values of variables in running device code?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;John&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 09:52:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-compiler-error-8945-Generalized-I-O-not-supported-in-an/m-p/1348308#M159167</guid>
      <dc:creator>John_Michalakes</dc:creator>
      <dc:date>2022-01-04T09:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: ifx compiler error #8945: Generalized I/O not supported in an offload region.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-compiler-error-8945-Generalized-I-O-not-supported-in-an/m-p/1348816#M159174</link>
      <description>&lt;P&gt;This snippet compiles for me .&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$ cat snippet.f90
program snippet
!$omp target
x = 1234.
print *, x
print *, 1234
!$omp end target
stop
end
$ ifx -qopenmp -fopenmp-targets=spir64 snippet.f90
$ ifx -what --version
ifx (IFORT) 2022.0.0 20211123
Copyright (C) 1985-2021 Intel Corporation. All rights reserved.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 21:29:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-compiler-error-8945-Generalized-I-O-not-supported-in-an/m-p/1348816#M159174</guid>
      <dc:creator>Barbara_P_Intel</dc:creator>
      <dc:date>2022-01-05T21:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: ifx compiler error #8945: Generalized I/O not supported in an offload region.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-compiler-error-8945-Generalized-I-O-not-supported-in-an/m-p/1348835#M159175</link>
      <description>&lt;P&gt;Thanks for looking into this.&amp;nbsp; It must be because I was using a &lt;FONT face="courier new,courier"&gt;write(*,*)&lt;/FONT&gt; instead of &lt;FONT face="courier new,courier"&gt;print*&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;If I change one of the prints in your snippet I get:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$ cat snip.F90
program snippet
!$omp target
x = 1234.
write(*,*) x
print *, 1234
!$omp end target
stop
end
$ ifx -qopenmp -fopenmp-targets=spir64 snip.F90
snip.F90(4): error #8945: Generalized I/O not supported in an offload region.
write(*,*) x
^
compilation aborted for snip.F90 (code 1)
$
&lt;/LI-CODE&gt;
&lt;P&gt;Mystery solved, thank you.&lt;/P&gt;
&lt;P&gt;John&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 22:44:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-compiler-error-8945-Generalized-I-O-not-supported-in-an/m-p/1348835#M159175</guid>
      <dc:creator>John_Michalakes</dc:creator>
      <dc:date>2022-01-05T22:44:17Z</dc:date>
    </item>
    <item>
      <title>Re:ifx compiler error #8945: Generalized I/O not supported in an offload region.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-compiler-error-8945-Generalized-I-O-not-supported-in-an/m-p/1348838#M159176</link>
      <description>&lt;P&gt;You're welcome.&lt;/P&gt;&lt;P&gt;I tried variations of the write, like &lt;SPAN style="font-family: courier; font-size: 12px;"&gt;write(6,*)&lt;/SPAN&gt; and &lt;SPAN style="font-family: courier;"&gt;write(6,5)&lt;/SPAN&gt;. All got that same message. But print does compile.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Jan 2022 22:56:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-compiler-error-8945-Generalized-I-O-not-supported-in-an/m-p/1348838#M159176</guid>
      <dc:creator>Barbara_P_Intel</dc:creator>
      <dc:date>2022-01-05T22:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: ifx compiler error #8945: Generalized I/O not supported in an offload region.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-compiler-error-8945-Generalized-I-O-not-supported-in-an/m-p/1349063#M159188</link>
      <description>&lt;P&gt;Of course, this IS a bug. If one is accepted, all of these should be.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 15:33:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-compiler-error-8945-Generalized-I-O-not-supported-in-an/m-p/1349063#M159188</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2022-01-06T15:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: ifx compiler error #8945: Generalized I/O not supported in an offload region.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-compiler-error-8945-Generalized-I-O-not-supported-in-an/m-p/1349072#M159191</link>
      <description>&lt;P&gt;According to the Fortran developers, "At this time, the only I/O we’re allowing in an offload region is 'print *' and even that is limited to numeric and character strings."&lt;/P&gt;
&lt;P&gt;I'll add that tidbit to the &lt;A href="https://www.intel.com/content/www/us/en/developer/articles/guide/porting-guide-for-ifort-to-ifx.html" target="_blank" rel="noopener"&gt;Porting Guide for ifort Users to ifx&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 16:22:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-compiler-error-8945-Generalized-I-O-not-supported-in-an/m-p/1349072#M159191</guid>
      <dc:creator>Barbara_P_Intel</dc:creator>
      <dc:date>2022-01-06T16:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: ifx compiler error #8945: Generalized I/O not supported in an offload region.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-compiler-error-8945-Generalized-I-O-not-supported-in-an/m-p/1349075#M159192</link>
      <description>&lt;P&gt;Thanks all for following up.&amp;nbsp; For what it's worth, write(*,*) and print* are analogous.&amp;nbsp; But I'm in good shape, now that I know the rule.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also FWIW, I think output of numeric and character strings to stdout from print and write(*,*) is all that the Nvidia compiler supports from an offload region.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 16:35:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-compiler-error-8945-Generalized-I-O-not-supported-in-an/m-p/1349075#M159192</guid>
      <dc:creator>John_Michalakes</dc:creator>
      <dc:date>2022-01-06T16:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: ifx compiler error #8945: Generalized I/O not supported in an offload region.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-compiler-error-8945-Generalized-I-O-not-supported-in-an/m-p/1349103#M159198</link>
      <description>&lt;P&gt;Barbara,&lt;/P&gt;
&lt;P&gt;What about&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; PRINT '("Value=",F6.2)', 123.456&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(my oneAPI system is not fired up)&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 18:07:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-compiler-error-8945-Generalized-I-O-not-supported-in-an/m-p/1349103#M159198</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2022-01-06T18:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: ifx compiler error #8945: Generalized I/O not supported in an offload region.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-compiler-error-8945-Generalized-I-O-not-supported-in-an/m-p/1349106#M159200</link>
      <description>&lt;P&gt;Or&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; WRITE(CharacterVariable,&amp;nbsp;&lt;SPAN&gt;'("Value=",F6.2)') 123.456&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jim Dempsey&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 18:09:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-compiler-error-8945-Generalized-I-O-not-supported-in-an/m-p/1349106#M159200</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2022-01-06T18:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: ifx compiler error #8945: Generalized I/O not supported in an offload region.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-compiler-error-8945-Generalized-I-O-not-supported-in-an/m-p/1349112#M159201</link>
      <description>&lt;P&gt;Doesn't look like it inside an OpenMP TARGET region.&lt;/P&gt;
&lt;LI-CODE lang="bash"&gt;+ ifx -qopenmp -fopenmp-targets=spir64 snippet.f90
snippet.f90(7): error #8945: Generalized I/O not supported in an offload region.
PRINT '("Value=",F6.2)', 123.456
^
snippet.f90(8): error #8945: Generalized I/O not supported in an offload region.
WRITE(CharacterVariable, '("Value=",F6.2)') 123.456
^
compilation aborted for snippet.f90 (code 1)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 18:36:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-compiler-error-8945-Generalized-I-O-not-supported-in-an/m-p/1349112#M159201</guid>
      <dc:creator>Barbara_P_Intel</dc:creator>
      <dc:date>2022-01-06T18:36:19Z</dc:date>
    </item>
  </channel>
</rss>

