<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172868</link>
    <title>MATLAB Central Newsreader - Fixed-Point Toolbox and BLAS</title>
    <description>Feed for thread: Fixed-Point Toolbox and BLAS</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 18 Jul 2008 21:00:22 -0400</pubDate>
      <title>Fixed-Point Toolbox and BLAS</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172868#444017</link>
      <author>Michael Hui</author>
      <description>I have a question regarding coding tricks one can use to&lt;br&gt;
make Fixed-Point Toolbox run as fast as possible.&lt;br&gt;
&lt;br&gt;
I have read elsewhere on this newsgroup that BLAS&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.intel.com/cd/software/products/asmo-na/eng/266858.htm&quot;&gt;http://www.intel.com/cd/software/products/asmo-na/eng/266858.htm&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
is not used for calculations in equations defined using&lt;br&gt;
Fixed-Point Toolbox.&lt;br&gt;
&lt;br&gt;
But what if I code my sum-of-products where every term on&lt;br&gt;
the RHS have their SumMode and ProductMode set to the&lt;br&gt;
FullPrecision default, and the tool already knows at&lt;br&gt;
compile time that the equation's LHS will have a mantissa&lt;br&gt;
with fewer bits than the floating point mantissa limit?&lt;br&gt;
That means the sum-of-products can be executed using BLAS,&lt;br&gt;
and any rounding or saturation can be handled afterwards.&lt;br&gt;
&lt;br&gt;
Or is it true that Fixed-Point Toolbox calculations never&lt;br&gt;
use BLAS, so no matter how I code it, there is no way to&lt;br&gt;
approach the speed of floating point sum-of-products&lt;br&gt;
calculations in regular M code?</description>
    </item>
    <item>
      <pubDate>Mon, 21 Jul 2008 12:07:25 -0400</pubDate>
      <title>Re: Fixed-Point Toolbox and BLAS</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172868#444292</link>
      <author>Tom Bryan</author>
      <description>Michael Hui wrote:&lt;br&gt;
&amp;gt; I have a question regarding coding tricks one can use to&lt;br&gt;
&amp;gt; make Fixed-Point Toolbox run as fast as possible.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have read elsewhere on this newsgroup that BLAS&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.intel.com/cd/software/products/asmo-na/eng/266858.htm&quot;&gt;http://www.intel.com/cd/software/products/asmo-na/eng/266858.htm&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; is not used for calculations in equations defined using&lt;br&gt;
&amp;gt; Fixed-Point Toolbox.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; But what if I code my sum-of-products where every term on&lt;br&gt;
&amp;gt; the RHS have their SumMode and ProductMode set to the&lt;br&gt;
&amp;gt; FullPrecision default, and the tool already knows at&lt;br&gt;
&amp;gt; compile time that the equation's LHS will have a mantissa&lt;br&gt;
&amp;gt; with fewer bits than the floating point mantissa limit?&lt;br&gt;
&amp;gt; That means the sum-of-products can be executed using BLAS,&lt;br&gt;
&amp;gt; and any rounding or saturation can be handled afterwards.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Or is it true that Fixed-Point Toolbox calculations never&lt;br&gt;
&amp;gt; use BLAS, so no matter how I code it, there is no way to&lt;br&gt;
&amp;gt; approach the speed of floating point sum-of-products&lt;br&gt;
&amp;gt; calculations in regular M code?&lt;br&gt;
&lt;br&gt;
Hi Michael,&lt;br&gt;
&lt;br&gt;
It is true that Fixed-Point Toolbox does not use BLAS.&lt;br&gt;
&lt;br&gt;
However, you can get speeds comparable to builtin types in MATLAB by &lt;br&gt;
compiling the code into a MEX file with the EMLMEX function.  The &lt;br&gt;
compiled code uses native integer types.  You get the best speedup by &lt;br&gt;
putting as much of the code as possible into the MEX file.&lt;br&gt;
&lt;br&gt;
You have the EMLMEX function if you have Fixed-Point Toolbox.&lt;br&gt;
&lt;br&gt;
Best wishes,&lt;br&gt;
Tom Bryan&lt;br&gt;
tbryan@mathworks.com</description>
    </item>
  </channel>
</rss>

