<?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 Segfault with asynchronous offload in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Segfault-with-asynchronous-offload/m-p/1114074#M73391</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I am facing a segmentation fault problem when I try to perform asynchronous offload at a later point which I believe is the time when the function returned.&lt;/P&gt;

&lt;P&gt;here is the code&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;functionA

real :: WORKN(X,Y,Z)

!dir$ offload begin target(MIC:0)signal(1)out(WORKN)
   do k=1,km
           .
           !Lots of code
!dir$ end offload

end function A


functionB

real :: Dummy

.
.
! Do Whatever

.
.
.
end function B




program run

!$OMP PARALLEL DO DEFAULT(SHARED) !this OMP is dummy i.e num_blockblock is 1, can be removed

do iblock=1,num_blocks

      call functionA(iblock) !here is the async offload

enddo

!$OMP END PARALLEL DO


!$OMP PARALLEL DO DEFAULT(SHARED)

do iblock=1,num_blocks

      call functionB(iblock) get segfault when B is running

enddo

!$OMP END PARALLEL DO

end program run
    &lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Mar 2016 07:16:14 GMT</pubDate>
    <dc:creator>aketh_t_</dc:creator>
    <dc:date>2016-03-17T07:16:14Z</dc:date>
    <item>
      <title>Segfault with asynchronous offload</title>
      <link>https://community.intel.com/t5/Software-Archive/Segfault-with-asynchronous-offload/m-p/1114074#M73391</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I am facing a segmentation fault problem when I try to perform asynchronous offload at a later point which I believe is the time when the function returned.&lt;/P&gt;

&lt;P&gt;here is the code&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;functionA

real :: WORKN(X,Y,Z)

!dir$ offload begin target(MIC:0)signal(1)out(WORKN)
   do k=1,km
           .
           !Lots of code
!dir$ end offload

end function A


functionB

real :: Dummy

.
.
! Do Whatever

.
.
.
end function B




program run

!$OMP PARALLEL DO DEFAULT(SHARED) !this OMP is dummy i.e num_blockblock is 1, can be removed

do iblock=1,num_blocks

      call functionA(iblock) !here is the async offload

enddo

!$OMP END PARALLEL DO


!$OMP PARALLEL DO DEFAULT(SHARED)

do iblock=1,num_blocks

      call functionB(iblock) get segfault when B is running

enddo

!$OMP END PARALLEL DO

end program run
    &lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 07:16:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Segfault-with-asynchronous-offload/m-p/1114074#M73391</guid>
      <dc:creator>aketh_t_</dc:creator>
      <dc:date>2016-03-17T07:16:14Z</dc:date>
    </item>
  </channel>
</rss>

