<?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: Run a Fortran program on GPU in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710573#M176699</link>
    <description>&lt;P&gt;It built fine for me, however I got this series of errors running it:&lt;/P&gt;&lt;LI-CODE lang="none"&gt;LEVEL_ZERO message: Error: module creation failed
LEVEL_ZERO message: Target build log:
LEVEL_ZERO message:   ''
LEVEL_ZERO message:   'error: Total size of kernel arguments exceeds limit! Total arguments size: 2088, limit: 2048'
LEVEL_ZERO message:   'in kernel: 'MAIN__''
LEVEL_ZERO message:   'error: backend compiler failed build.'
LEVEL_ZERO message:   ''
LEVEL_ZERO message:   'error: Total size of kernel arguments exceeds limit! Total arguments size: 2088, limit: 2048'
LEVEL_ZERO message:   'in kernel: 'MAIN__''
LEVEL_ZERO message:   'error: backend compiler failed build.'
"PluginInterface" error: Failure to load binary image 0000027CEBD6A990 on device 0: Error in buildModules -1
omptarget error: Failed to load image Failed to load binary 0000027CEBD6A990
omptarget fatal error 0: Failed to load images on device '0'&lt;/LI-CODE&gt;&lt;P&gt;I haven't offloaded before, but I suspect your loop is too complex to be offloaded to my Intel GPU.&amp;nbsp; Someone else may be able to provide other suggestions to fix this.&lt;/P&gt;&lt;P&gt;As you for your inability to compile your program, I suggest you confirm that you have all the HPC toolkit components installed and if that looks ok, try repairing your installation.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Aug 2025 16:16:03 GMT</pubDate>
    <dc:creator>Mark_Lewy</dc:creator>
    <dc:date>2025-08-19T16:16:03Z</dc:date>
    <item>
      <title>Run a Fortran program on GPU</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710283#M176673</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="eliopoulos_0-1755535963680.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/68279i25FA360C21D3A80A/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="eliopoulos_0-1755535963680.png" alt="eliopoulos_0-1755535963680.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have an&amp;nbsp;Asrock intel arc a770 phantom gaming 16gb oc GPU and I try to run my Fortran program on it. When I build the solution, I get the above warnings and errors. Is there anything I can do to make it work?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 16:58:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710283#M176673</guid>
      <dc:creator>eliopoulos</dc:creator>
      <dc:date>2025-08-18T16:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Run a Fortran program on GPU</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710304#M176679</link>
      <description>&lt;P&gt;Did you install the Arc GPU driver?&amp;nbsp; Our documentation on the prerequisite drivers is somewhat obscure, though necessary:&lt;BR /&gt;&lt;A href="https://www.intel.com/content/www/us/en/docs/oneapi/installation-guide-windows/2025-2/install-intel-gpu-drivers.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/docs/oneapi/installation-guide-windows/2025-2/install-intel-gpu-drivers.html&lt;/A&gt;&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>Mon, 18 Aug 2025 19:25:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710304#M176679</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2025-08-18T19:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Run a Fortran program on GPU</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710313#M176681</link>
      <description>&lt;P&gt;I did. Nothing changed.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 20:02:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710313#M176681</guid>
      <dc:creator>eliopoulos</dc:creator>
      <dc:date>2025-08-18T20:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Run a Fortran program on GPU</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710490#M176686</link>
      <description>&lt;P&gt;It appears to me that you don't have the Intel oneAPI DPC++/C++ Compiler installed.&lt;BR /&gt;I think you need it to generate code to offload to a GPU.&lt;/P&gt;&lt;P&gt;It is a available as an option in the HPC Toolkit installer.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 11:26:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710490#M176686</guid>
      <dc:creator>Mark_Lewy</dc:creator>
      <dc:date>2025-08-19T11:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Run a Fortran program on GPU</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710505#M176690</link>
      <description>&lt;P&gt;I have installed it.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 12:47:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710505#M176690</guid>
      <dc:creator>eliopoulos</dc:creator>
      <dc:date>2025-08-19T12:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Run a Fortran program on GPU</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710531#M176691</link>
      <description>&lt;P&gt;I compiled this very simple program and it appears to be offloading, according to vtune:&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;program offload_test
    implicit none
    integer, parameter :: n = 1000000
    real, allocatable :: a(:), b(:), c(:)
    integer :: i

    allocate(a(n), b(n), c(n))

    ! Initialize arrays
    a = 1.0
    b = 2.0

    !$omp target teams distribute parallel do map(to: a, b) map(from: c)
    do i = 1, n
        c(i) = a(i) + b(i)
    end do

    print *, "First element of c: ", c(1)
    print *, "Last element of c: ", c(n)
end program offload_test&lt;/LI-CODE&gt;&lt;P&gt;ifx 2025.2.0, VS 2022 LTSC 17.12.4&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Options for a debug build:&lt;BR /&gt;/nologo /debug:full /Od /Qopenmp-targets:spir64 /Qopenmp /Qiopenmp /warn:interfaces /module:"x64\Debug\\" /object:"x64\Debug\\" /traceback /check:bounds /check:stack /libs:dll /threads /dbglibs /c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 13:46:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710531#M176691</guid>
      <dc:creator>Mark_Lewy</dc:creator>
      <dc:date>2025-08-19T13:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Run a Fortran program on GPU</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710564#M176697</link>
      <description>&lt;P&gt;Here is my program along with the input files (continued in the next post). To build the solution, you should set: /Qmkl, /integer-size:64 and /Qoverride-limits. Can you make it run on GPU?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 15:38:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710564#M176697</guid>
      <dc:creator>eliopoulos</dc:creator>
      <dc:date>2025-08-19T15:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Run a Fortran program on GPU</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710566#M176698</link>
      <description>&lt;P&gt;Here are the remaining input files.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 15:39:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710566#M176698</guid>
      <dc:creator>eliopoulos</dc:creator>
      <dc:date>2025-08-19T15:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Run a Fortran program on GPU</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710573#M176699</link>
      <description>&lt;P&gt;It built fine for me, however I got this series of errors running it:&lt;/P&gt;&lt;LI-CODE lang="none"&gt;LEVEL_ZERO message: Error: module creation failed
LEVEL_ZERO message: Target build log:
LEVEL_ZERO message:   ''
LEVEL_ZERO message:   'error: Total size of kernel arguments exceeds limit! Total arguments size: 2088, limit: 2048'
LEVEL_ZERO message:   'in kernel: 'MAIN__''
LEVEL_ZERO message:   'error: backend compiler failed build.'
LEVEL_ZERO message:   ''
LEVEL_ZERO message:   'error: Total size of kernel arguments exceeds limit! Total arguments size: 2088, limit: 2048'
LEVEL_ZERO message:   'in kernel: 'MAIN__''
LEVEL_ZERO message:   'error: backend compiler failed build.'
"PluginInterface" error: Failure to load binary image 0000027CEBD6A990 on device 0: Error in buildModules -1
omptarget error: Failed to load image Failed to load binary 0000027CEBD6A990
omptarget fatal error 0: Failed to load images on device '0'&lt;/LI-CODE&gt;&lt;P&gt;I haven't offloaded before, but I suspect your loop is too complex to be offloaded to my Intel GPU.&amp;nbsp; Someone else may be able to provide other suggestions to fix this.&lt;/P&gt;&lt;P&gt;As you for your inability to compile your program, I suggest you confirm that you have all the HPC toolkit components installed and if that looks ok, try repairing your installation.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 16:16:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710573#M176699</guid>
      <dc:creator>Mark_Lewy</dc:creator>
      <dc:date>2025-08-19T16:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Run a Fortran program on GPU</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710576#M176700</link>
      <description>&lt;P&gt;GPUs have fixed memory size - in this example the data is too large.&amp;nbsp; Keep it simple, first get 100 element arrays to work then curb your data to fit the GPU.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;test that the driver is installed and working.&amp;nbsp; From a Intel Fortran Command Prompt window, run this command to make sure the driver is responding&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sycl-ls&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 16:27:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710576#M176700</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2025-08-19T16:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Run a Fortran program on GPU</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710579#M176701</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="eliopoulos_0-1755621381972.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/68308i1D2D930B5C2C946A/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="eliopoulos_0-1755621381972.png" alt="eliopoulos_0-1755621381972.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I think the driver responds.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 16:37:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710579#M176701</guid>
      <dc:creator>eliopoulos</dc:creator>
      <dc:date>2025-08-19T16:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Run a Fortran program on GPU</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710581#M176702</link>
      <description>&lt;P&gt;compile and run from the Intel Fortran command prompt before moving to VS.&amp;nbsp; After downsizing the data sizes, run Mark's example to make sure core functionality is working.&amp;nbsp; And get rid of all the unnecessary /check and /warn options, traceback, etc.&amp;nbsp; Keep the compiler options to the simple qopenmp* options&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Get something simple working before throwing the question of Life the Universe and Everything to the GPU&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 17:00:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710581#M176702</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2025-08-19T17:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Run a Fortran program on GPU</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710592#M176703</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="eliopoulos_0-1755624404053.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/68313i62B77C9C61C24A4B/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="eliopoulos_0-1755624404053.png" alt="eliopoulos_0-1755624404053.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Mark's example works. Is there anything wrong with my setup?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 17:28:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710592#M176703</guid>
      <dc:creator>eliopoulos</dc:creator>
      <dc:date>2025-08-19T17:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Run a Fortran program on GPU</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710605#M176704</link>
      <description>&lt;P&gt;There is an online document for OpenMP for C++ and Fortran&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/docs/oneapi/programming-guide/2025-1/c-c-or-fortran-with-openmp-offload-programming.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/docs/oneapi/programming-guide/2025-1/c-c-or-fortran-with-openmp-offload-programming.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would recommend:&lt;BR /&gt;set LIBOMPTARGET_PLUGIN_PROFILE=T&lt;/P&gt;
&lt;P&gt;When set, and you run your application, it will print the information for each offload kernel.&amp;nbsp; This is a way to verify that offload is actually occurring.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ron_Green_1-1755629270702.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/68315iC923A69DA8067407/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Ron_Green_1-1755629270702.png" alt="Ron_Green_1-1755629270702.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also there are ENV vars to control output of debug info if something goes wrong in the offload&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ron_Green_0-1755629240441.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/68314i87AAD1002117EBB6/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Ron_Green_0-1755629240441.png" alt="Ron_Green_0-1755629240441.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 18:49:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1710605#M176704</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2025-08-19T18:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Run a Fortran program on GPU</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1711034#M176724</link>
      <description>&lt;P&gt;I still cannot compile and run my program on my Intel GPU. Is there anyone who can?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 16:07:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Run-a-Fortran-program-on-GPU/m-p/1711034#M176724</guid>
      <dc:creator>eliopoulos</dc:creator>
      <dc:date>2025-08-21T16:07:57Z</dc:date>
    </item>
  </channel>
</rss>

