<?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: mkl_?imatcopy in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-imatcopy/m-p/869270#M8320</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/331633"&gt;soliton&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;Has anyone had any experience on using the in place traspose/scale routines mkl_?imatcopy?&lt;BR /&gt;&lt;BR /&gt;I have been trying to make it work in my code but it always returns the matrix untouched.&lt;BR /&gt;I am using mkl 10.1 from a fortran program.&lt;BR /&gt;&lt;BR /&gt;my simple test code is:&lt;BR /&gt;&lt;BR /&gt;----------------------&lt;BR /&gt;a1(1,1) = 1.0_8&lt;BR /&gt;a1(1,2) = 3.0_8&lt;BR /&gt;a1(2,2) = 5.0_8&lt;BR /&gt;a1(2,1) = 7.0_8&lt;BR /&gt;call dimatcopy(C,T,2,2,5.0_8,a1,2,2)&lt;BR /&gt;write(*,*)a1(1,1)&lt;BR /&gt;write(*,*)a1(1,2)&lt;BR /&gt;write(*,*)a1(2,2)&lt;BR /&gt;write(*,*)a1(2,1)&lt;BR /&gt;----------------------&lt;BR /&gt;&lt;BR /&gt;which writes back the values without change.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Cristian&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Cristian,&lt;BR /&gt;&lt;BR /&gt;This is a problem in the FORTRAN interface of the matrix movement routines which will be fixed in our future releases. In case you urgently need the fix I would recomend submitting this to the premier.intel.com site.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Vladimir &lt;BR /&gt;</description>
    <pubDate>Sat, 10 Jan 2009 19:03:16 GMT</pubDate>
    <dc:creator>Vladimir_Petrov__Int</dc:creator>
    <dc:date>2009-01-10T19:03:16Z</dc:date>
    <item>
      <title>mkl_?imatcopy</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-imatcopy/m-p/869269#M8319</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Has anyone had any experience on using the in place traspose/scale routines mkl_?imatcopy?&lt;BR /&gt;&lt;BR /&gt;I have been trying to make it work in my code but it always returns the matrix untouched.&lt;BR /&gt;I am using mkl 10.1 from a fortran program.&lt;BR /&gt;&lt;BR /&gt;my simple test code is:&lt;BR /&gt;&lt;BR /&gt;----------------------&lt;BR /&gt;a1(1,1) = 1.0_8&lt;BR /&gt;a1(1,2) = 3.0_8&lt;BR /&gt;a1(2,2) = 5.0_8&lt;BR /&gt;a1(2,1) = 7.0_8&lt;BR /&gt;call dimatcopy(C,T,2,2,5.0_8,a1,2,2)&lt;BR /&gt;write(*,*)a1(1,1)&lt;BR /&gt;write(*,*)a1(1,2)&lt;BR /&gt;write(*,*)a1(2,2)&lt;BR /&gt;write(*,*)a1(2,1)&lt;BR /&gt;----------------------&lt;BR /&gt;&lt;BR /&gt;which writes back the values without change.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Cristian</description>
      <pubDate>Sat, 10 Jan 2009 02:43:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-imatcopy/m-p/869269#M8319</guid>
      <dc:creator>soliton</dc:creator>
      <dc:date>2009-01-10T02:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: mkl_?imatcopy</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-imatcopy/m-p/869270#M8320</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/331633"&gt;soliton&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;Has anyone had any experience on using the in place traspose/scale routines mkl_?imatcopy?&lt;BR /&gt;&lt;BR /&gt;I have been trying to make it work in my code but it always returns the matrix untouched.&lt;BR /&gt;I am using mkl 10.1 from a fortran program.&lt;BR /&gt;&lt;BR /&gt;my simple test code is:&lt;BR /&gt;&lt;BR /&gt;----------------------&lt;BR /&gt;a1(1,1) = 1.0_8&lt;BR /&gt;a1(1,2) = 3.0_8&lt;BR /&gt;a1(2,2) = 5.0_8&lt;BR /&gt;a1(2,1) = 7.0_8&lt;BR /&gt;call dimatcopy(C,T,2,2,5.0_8,a1,2,2)&lt;BR /&gt;write(*,*)a1(1,1)&lt;BR /&gt;write(*,*)a1(1,2)&lt;BR /&gt;write(*,*)a1(2,2)&lt;BR /&gt;write(*,*)a1(2,1)&lt;BR /&gt;----------------------&lt;BR /&gt;&lt;BR /&gt;which writes back the values without change.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Cristian&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Cristian,&lt;BR /&gt;&lt;BR /&gt;This is a problem in the FORTRAN interface of the matrix movement routines which will be fixed in our future releases. In case you urgently need the fix I would recomend submitting this to the premier.intel.com site.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Vladimir &lt;BR /&gt;</description>
      <pubDate>Sat, 10 Jan 2009 19:03:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-imatcopy/m-p/869270#M8320</guid>
      <dc:creator>Vladimir_Petrov__Int</dc:creator>
      <dc:date>2009-01-10T19:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: mkl_?imatcopy</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-imatcopy/m-p/869271#M8321</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/93654"&gt;Vladimir Petrov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/331633"&gt;soliton&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;Has anyone had any experience on using the in place traspose/scale routines mkl_?imatcopy?&lt;BR /&gt;&lt;BR /&gt;I have been trying to make it work in my code but it always returns the matrix untouched.&lt;BR /&gt;I am using mkl 10.1 from a fortran program.&lt;BR /&gt;&lt;BR /&gt;my simple test code is:&lt;BR /&gt;&lt;BR /&gt;----------------------&lt;BR /&gt;a1(1,1) = 1.0_8&lt;BR /&gt;a1(1,2) = 3.0_8&lt;BR /&gt;a1(2,2) = 5.0_8&lt;BR /&gt;a1(2,1) = 7.0_8&lt;BR /&gt;call dimatcopy(C,T,2,2,5.0_8,a1,2,2)&lt;BR /&gt;write(*,*)a1(1,1)&lt;BR /&gt;write(*,*)a1(1,2)&lt;BR /&gt;write(*,*)a1(2,2)&lt;BR /&gt;write(*,*)a1(2,1)&lt;BR /&gt;----------------------&lt;BR /&gt;&lt;BR /&gt;which writes back the values without change.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Cristian&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Cristian,&lt;BR /&gt;&lt;BR /&gt;This is a problem in the FORTRAN interface of the matrix movement routines which will be fixed in our future releases. In case you urgently need the fix I would recomend submitting this to the premier.intel.com site.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Vladimir &lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Thanx Vladimir,&lt;BR /&gt;&lt;BR /&gt;The problem seems to be there for all of the "blas like extensions" routines Ive tried. Do you know wether the C ones work fine? If thats the case I might write a small C wrapper to get the job done.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Cristian&lt;BR /&gt;</description>
      <pubDate>Sat, 10 Jan 2009 19:15:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-imatcopy/m-p/869271#M8321</guid>
      <dc:creator>soliton</dc:creator>
      <dc:date>2009-01-10T19:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: mkl_?imatcopy</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-imatcopy/m-p/869272#M8322</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Cristian,&lt;BR /&gt;&lt;BR /&gt;Yes, the C interface works correctly.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Vladimir&lt;BR /&gt;</description>
      <pubDate>Sun, 11 Jan 2009 05:36:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-imatcopy/m-p/869272#M8322</guid>
      <dc:creator>Vladimir_Petrov__Int</dc:creator>
      <dc:date>2009-01-11T05:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: mkl_?imatcopy</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-imatcopy/m-p/869273#M8323</link>
      <description>&lt;DIV style="margin:0px;"&gt;FYI: Below - the output of your code:&lt;BR /&gt;&lt;BR /&gt;a[0] == 1.000000&lt;BR /&gt;a[1] == 3.000000&lt;BR /&gt;a[2] == 5.000000&lt;BR /&gt;a[3] == 7.000000&lt;BR /&gt;&lt;BR /&gt;C interface of mkl_dimatcopy&lt;BR /&gt;&lt;BR /&gt;OUTPUT DATA&lt;BR /&gt;a[0] == 5.000000&lt;BR /&gt;a[1] == 25.000000&lt;BR /&gt;a[2] == 15.000000&lt;BR /&gt;a[3] == 35.000000&lt;BR /&gt;Press any key to continue . &lt;BR /&gt;--Gennady&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Sun, 11 Jan 2009 06:30:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-imatcopy/m-p/869273#M8323</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-01-11T06:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: mkl_?imatcopy</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-imatcopy/m-p/869274#M8324</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/334681"&gt;Gennady Fedorov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;FYI: Below - the output of your code:&lt;BR /&gt;&lt;BR /&gt;a[0] == 1.000000&lt;BR /&gt;a[1] == 3.000000&lt;BR /&gt;a[2] == 5.000000&lt;BR /&gt;a[3] == 7.000000&lt;BR /&gt;&lt;BR /&gt;C interface of mkl_dimatcopy&lt;BR /&gt;&lt;BR /&gt;OUTPUT DATA&lt;BR /&gt;a[0] == 5.000000&lt;BR /&gt;a[1] == 25.000000&lt;BR /&gt;a[2] == 15.000000&lt;BR /&gt;a[3] == 35.000000&lt;BR /&gt;Press any key to continue . &lt;BR /&gt;--Gennady&lt;/DIV&gt;
&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Many thanx Guys,&lt;BR /&gt;&lt;BR /&gt;Ive managed to make a tiny C wrapper for the routines I needed and it works fine. Code for a rudimentary working interface to zomatadd is attached. Its probably not "correct" since my C is extremely rudimentary.&lt;BR /&gt;&lt;BR /&gt;All the best,&lt;BR /&gt;&lt;BR /&gt;Cristian&lt;BR /&gt;&lt;BR /&gt;-----------------------------------------&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include "mkl_trans.h"&lt;BR /&gt;&lt;BR /&gt;void matadd_(int *d, MKL_Complex16 *a, MKL_Complex16 *alpha, MKL_Complex16 *b, MKL_Complex16 *beta, MKL_Complex16 *c) &lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt; unsigned long dim;&lt;BR /&gt;&lt;BR /&gt; dim = *d;&lt;BR /&gt; mkl_zomatadd('C','N','N',dim,dim,*alpha,a,dim,*beta,b,dim,c,dim);&lt;BR /&gt;}&lt;BR /&gt;-----------------------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Sun, 11 Jan 2009 18:04:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-imatcopy/m-p/869274#M8324</guid>
      <dc:creator>soliton</dc:creator>
      <dc:date>2009-01-11T18:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: mkl_?imatcopy</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-imatcopy/m-p/869275#M8325</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/331633"&gt;soliton&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;&lt;BR /&gt;Thanx Vladimir,&lt;BR /&gt;&lt;BR /&gt;The problem seems to be there for all of the "blas like extensions" routines Ive tried. Do you know wether the C ones work fine? If thats the case I might write a small C wrapper to get the job done.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Cristian&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Cristian,&lt;BR /&gt;the problem with this routine ( Fortran interfaces ) was fixed in MKL version 10.2. released yesterday.&lt;BR /&gt;This version available for download from intel registration center: &lt;A href="https://registrationcenter.intel.com/" target="_blank"&gt;https://registrationcenter.intel.com/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;one comment:&lt;BR /&gt;use parameter fomat 5.0d1 instead of 5.0&lt;BR /&gt;&lt;BR /&gt;mkl_dimatcopy( 'C','T', 2, 2, 5.0d1, a, 2, 2)&lt;BR /&gt;&lt;BR /&gt;see below the output i received with your test:&lt;BR /&gt;THE In-place transposition/copying of matrices&lt;BR /&gt;500.000000000000&lt;BR /&gt;3500.00000000000&lt;BR /&gt;2500.00000000000&lt;BR /&gt;1500.00000000000&lt;BR /&gt;THE Out-place transposition/copying of matrices&lt;BR /&gt;25000.0000000000&lt;BR /&gt;75000.0000000000&lt;BR /&gt;125000.000000000&lt;BR /&gt;175000.000000000&lt;BR /&gt;THE END&lt;BR /&gt;Press any key to continue . . .&lt;BR /&gt;&lt;BR /&gt;Regards, Gennady&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Jun 2009 09:28:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-imatcopy/m-p/869275#M8325</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-06-24T09:28:21Z</dc:date>
    </item>
  </channel>
</rss>

