<?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 may be you make sense to try in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Sum-along-specific-matrix-axis/m-p/1156099#M27576</link>
    <description>&lt;P&gt;may be you make sense to try the IDP ( Intel Distribution Package) witch will help ( probably will help) you to see perf benefits without changing the original Python code.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Nov 2018 04:09:37 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2018-11-10T04:09:37Z</dc:date>
    <item>
      <title>Sum along specific matrix axis</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Sum-along-specific-matrix-axis/m-p/1156098#M27575</link>
      <description>&lt;P&gt;I am working on a project where I want to accelerate numpy &lt;STRONG&gt;element-wise multiplication&lt;/STRONG&gt; and &lt;STRONG&gt;sum&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;What I am doing is transfer the numpy array to C pointer and use MKL function to accelerate them(through cython)&lt;/P&gt;&lt;P&gt;For element-wise multiplication I have got the &lt;STRONG&gt;vdmul&lt;/STRONG&gt; function. However when I check for sum there is no suitable function&lt;/P&gt;&lt;P&gt;in MKL which could sum a matrix along its specific axis and return a smaller matrix.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;input: matrix A, shape is [100,200,300]&lt;/P&gt;&lt;P&gt;B = sum(A, axis = 0)&lt;/P&gt;&lt;P&gt;B shape is [200,300]&lt;/P&gt;&lt;P&gt;Could anyone give some advice? Thank you very much!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 16:42:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Sum-along-specific-matrix-axis/m-p/1156098#M27575</guid>
      <dc:creator>Zhang__Hao</dc:creator>
      <dc:date>2018-11-09T16:42:59Z</dc:date>
    </item>
    <item>
      <title>may be you make sense to try</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Sum-along-specific-matrix-axis/m-p/1156099#M27576</link>
      <description>&lt;P&gt;may be you make sense to try the IDP ( Intel Distribution Package) witch will help ( probably will help) you to see perf benefits without changing the original Python code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Nov 2018 04:09:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Sum-along-specific-matrix-axis/m-p/1156099#M27576</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2018-11-10T04:09:37Z</dc:date>
    </item>
    <item>
      <title>Quote:Gennady F. (Intel)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Sum-along-specific-matrix-axis/m-p/1156100#M27577</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Gennady F. (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be you make sense to try the IDP ( Intel Distribution Package) witch will help ( probably will help) you to see perf benefits without changing the original Python code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested the IDP and found that numpy sum has almost same speed compared to original python. Actually they are both one threaded as I test them. Compared to another numpy function multiply, which is meant for matrix element-wise multiplication, IDP version will use 4 thread in my PC(I7-6700HQ) while original python only use 1 thread.&lt;/P&gt;&lt;P&gt;My original purpose is that as numpy sum is single threaded, I want to fully optimise it with multithreading, Do you have any other recommendations? Thanks very much!&lt;/P&gt;</description>
      <pubDate>Sun, 25 Nov 2018 22:52:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Sum-along-specific-matrix-axis/m-p/1156100#M27577</guid>
      <dc:creator>Zhang__Hao</dc:creator>
      <dc:date>2018-11-25T22:52:57Z</dc:date>
    </item>
    <item>
      <title>MKL doesn't include plain sum</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Sum-along-specific-matrix-axis/m-p/1156101#M27578</link>
      <description>&lt;P&gt;MKL doesn't include plain sum functions for the reason, that there is no possibility in the usual cases to improve on the performance of optimized C or Fortran compiled code.&amp;nbsp; Multi-threading would&amp;nbsp; improve performance only in the case where you have multiple memory controllers (multiple CPU platform) and have taken care to avoid remote memory access, by summing only on the stride 1 extent of the matrix, and keeping the largest stride extents consistently local to a single memory controller (CPU). This is probably not a sufficiently practical usage case to justify supporting in MKL, but would be no more difficult to support with your C or Fortran compilation than it would be with an MKL function.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 09:56:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Sum-along-specific-matrix-axis/m-p/1156101#M27578</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2018-11-26T09:56:43Z</dc:date>
    </item>
  </channel>
</rss>

