<?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 Another application of dcopy subroutine in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Another-application-of-dcopy-subroutine/m-p/834138#M5913</link>
    <description>Hello all, &lt;BR /&gt;&lt;BR /&gt;I am trying to apply dcopy to my parallel codes.In that, I want to chop one big array into several small arrays which sizes are defined by the number of threads applied. &lt;BR /&gt;For example,&lt;BR /&gt;&lt;BR /&gt;* big_array(1~100)can beseparated into4 smallarrays such as small_array1(1~25),small_array2(26~50), small_array3(51~75), small_array4(76~100).&lt;BR /&gt;&lt;BR /&gt; In this case, the small_array1,2,3, and 4 will copy values in the big_array so i need to assign the range which the small_arrays will copy from the big_array.&lt;BR /&gt;&lt;BR /&gt;Rough idea for this function is &lt;BR /&gt;&lt;BR /&gt;dcopy1(start,end,big_array,indx,small_array1,indx) &lt;BR /&gt;&lt;BR /&gt;I am wondering if you have any ideas about this. Any comments will be helpful!&lt;BR /&gt;Cheers, &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 25 Aug 2010 17:25:46 GMT</pubDate>
    <dc:creator>Hyoun-tae_Hwang</dc:creator>
    <dc:date>2010-08-25T17:25:46Z</dc:date>
    <item>
      <title>Another application of dcopy subroutine</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Another-application-of-dcopy-subroutine/m-p/834138#M5913</link>
      <description>Hello all, &lt;BR /&gt;&lt;BR /&gt;I am trying to apply dcopy to my parallel codes.In that, I want to chop one big array into several small arrays which sizes are defined by the number of threads applied. &lt;BR /&gt;For example,&lt;BR /&gt;&lt;BR /&gt;* big_array(1~100)can beseparated into4 smallarrays such as small_array1(1~25),small_array2(26~50), small_array3(51~75), small_array4(76~100).&lt;BR /&gt;&lt;BR /&gt; In this case, the small_array1,2,3, and 4 will copy values in the big_array so i need to assign the range which the small_arrays will copy from the big_array.&lt;BR /&gt;&lt;BR /&gt;Rough idea for this function is &lt;BR /&gt;&lt;BR /&gt;dcopy1(start,end,big_array,indx,small_array1,indx) &lt;BR /&gt;&lt;BR /&gt;I am wondering if you have any ideas about this. Any comments will be helpful!&lt;BR /&gt;Cheers, &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Aug 2010 17:25:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Another-application-of-dcopy-subroutine/m-p/834138#M5913</guid>
      <dc:creator>Hyoun-tae_Hwang</dc:creator>
      <dc:date>2010-08-25T17:25:46Z</dc:date>
    </item>
    <item>
      <title>Another application of dcopy subroutine</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Another-application-of-dcopy-subroutine/m-p/834139#M5914</link>
      <description>That would be the Fortran-77 approach. In Fortran 2003, you can do:&lt;BR /&gt;&lt;PRE&gt;[fortran]subroutine sub(A,N,...)
real(wp), dimension(N) :: A
real(wp),allocatable, dimension(:) :: A1,A2,A3
...
nby3=N/3       ! N should be an exact multiple of 3
A1=A(1:nby3); A2=A(nby3+1:2*nby3); A3=A(2*nby3+1:N)

[/fortran]&lt;/PRE&gt; How to go about this depends on what fate you have in store for the pieces so extracted.</description>
      <pubDate>Wed, 25 Aug 2010 23:48:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Another-application-of-dcopy-subroutine/m-p/834139#M5914</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-08-25T23:48:51Z</dc:date>
    </item>
    <item>
      <title>Another application of dcopy subroutine</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Another-application-of-dcopy-subroutine/m-p/834140#M5915</link>
      <description>moreover it would be faster then using dcopy for such cases.</description>
      <pubDate>Thu, 26 Aug 2010 05:04:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Another-application-of-dcopy-subroutine/m-p/834140#M5915</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-08-26T05:04:37Z</dc:date>
    </item>
    <item>
      <title>Another application of dcopy subroutine</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Another-application-of-dcopy-subroutine/m-p/834141#M5916</link>
      <description>Thank you for your response. It seems a good idea. &lt;BR /&gt;By the way, the output variables (A1,A2,A3)will bedepend on the number of threadassigned.&lt;BR /&gt;So,I am wondering ifIuse two dimensional arrays such as&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;subroutine sub(A,N,start,end,A1,numthread) &lt;/P&gt;&lt;P&gt;real(wp), dimension(N) :: A &lt;/P&gt;&lt;P&gt;real(wp),allocatable, dimension(:,:) :: A1 &lt;BR /&gt;&lt;BR /&gt;... &lt;/P&gt;&lt;P&gt;A1(start(1):end(1),1) = A(start(1):end(1)); &lt;BR /&gt;A1(start(2):end(2),2) = A(start(2):end(2)); &lt;BR /&gt;.... &lt;BR /&gt;A1(start(numthread):end(numthread),numthread)=A(start(numthread):end(numthread))&lt;BR /&gt;&lt;BR /&gt;end subroutine sub&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2010 18:33:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Another-application-of-dcopy-subroutine/m-p/834141#M5916</guid>
      <dc:creator>Hyoun-tae_Hwang</dc:creator>
      <dc:date>2010-08-26T18:33:25Z</dc:date>
    </item>
    <item>
      <title>Another application of dcopy subroutine</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Another-application-of-dcopy-subroutine/m-p/834142#M5917</link>
      <description>Okay, then I will try it. Thanks</description>
      <pubDate>Thu, 26 Aug 2010 18:35:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Another-application-of-dcopy-subroutine/m-p/834142#M5917</guid>
      <dc:creator>Hyoun-tae_Hwang</dc:creator>
      <dc:date>2010-08-26T18:35:43Z</dc:date>
    </item>
  </channel>
</rss>

