<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.8.0-dev (info@mypapit.net)" -->
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
    <title>AccelerEyes Forums</title>
    <subtitle>GPU computing with Jacket for use with MATLAB® &amp;amp; ArrayFire for use with C, C++, Fortran, and Python</subtitle>
    <link rel="self" type="application/atom+xml" href="http://forums.accelereyes.com/forums/smartfeed.php?feed_type=ATOM1.0&amp;limit=1_DAY&amp;sort_by=standard&amp;feed_style=HTML&amp;" />
    <id>http://forums.accelereyes.com/forums/smartfeed.php?feed_type=ATOM1.0&amp;limit=1_DAY&amp;sort_by=standard&amp;feed_style=HTML&amp;</id>
    <updated>2012-05-17T11:33:25+00:00</updated>
    <generator>FeedCreator 1.8.0-dev (info@mypapit.net)</generator>
    <entry>
        <title>Programming &amp; Development with Jacket for use with MATLAB® :: Re: Fatal Matlab Error and Jacket Memory Management Issues :: Reply by pavanky</title>
        <link rel="alternate" type="text/html" href="http://forums.accelereyes.com/forums/viewtopic.php?f=7&amp;t=4022&amp;p=11921#p11921"/>
        <published>2012-05-16T20:33:47+00:00</published>
        <updated>2012-05-16T20:33:47+00:00</updated>
        <id>http://forums.accelereyes.com/forums/viewtopic.php?f=7&amp;t=4022&amp;p=11921#p11921</id>
        <author>
            <name>pavanky</name>
        </author>
        <category term="Programming &amp; Development with Jacket for use with MATLAB®" />
        <content type="html"><![CDATA[Hi Mike,<br /><br />Any chance we can have a look at the code ? I am guessing if you do geval(A); gysnc. before you do double(..) it would fail at gsync.<br />double(..) is a blocking operation so it waits until all previous gpu operations (related to A) are done. This may mean something else is broken and is being caught very late when doing double.<br /><br />It would really be helpful if we can have a look at the code  (or the smallest piece of code segment that will show this behavior) to figure this out.]]></content>
        <summary type="html"><![CDATA[Hi Mike,<br /><br />Any chance we can have a look at the code ? I am guessing if you do geval(A); gysnc. before you do double(..) it would fail at gsync.<br />double(..) is a blocking operation so it waits until all previous gpu operations (related to A) are done. This may mean something else is broken and is being caught very late when doing double.<br /><br />It would really be helpful if we can have a look at the code  (or the smallest piece of code segment that will show this behavior) to figure this out.]]></summary>
    </entry>
    <entry>
        <title>Programming &amp; Development with Jacket for use with MATLAB® :: Re: Fatal Matlab Error and Jacket Memory Management Issues :: Reply by mjs454</title>
        <link rel="alternate" type="text/html" href="http://forums.accelereyes.com/forums/viewtopic.php?f=7&amp;t=4022&amp;p=11923#p11923"/>
        <published>2012-05-17T02:52:29+00:00</published>
        <updated>2012-05-17T02:52:29+00:00</updated>
        <id>http://forums.accelereyes.com/forums/viewtopic.php?f=7&amp;t=4022&amp;p=11923#p11923</id>
        <author>
            <name>mjs454</name>
        </author>
        <category term="Programming &amp; Development with Jacket for use with MATLAB®" />
        <content type="html"><![CDATA[It seems that if I cast before the second function call it works fine. Unfortunately, it would be quite a process to release the code. I can say that it is using a lot of random number generation calls and fft calls. Since I have it working with this workaround, I'm not too concerned. <br />Thanks,<br />Mike<br /><br />x = function1(....); % 3000x3000 gdouble complex<br />xCPU = double(x);<br />y = function2(x, ...); % y is 3000x3000x10 gdouble complex]]></content>
        <summary type="html"><![CDATA[It seems that if I cast before the second function call it works fine. Unfortunately, it would be quite a process to release the code. I can say that it is using a lot of random number generation calls and fft calls. Since I have it working with this workaround, I'm not too concerned. <br />Thanks,<br />Mike<br /><br />x = function1(....); % 3000x3000 gdouble complex<br />xCPU = double(x);<br />y = function2(x, ...); % y is 3000x3000x10 gdouble complex]]></summary>
    </entry>
    <entry>
        <title>Programming &amp; Development with ArrayFire for C, C++, Fortran, and Python :: Re: arrayfire 1.1 python malloc error :: Reply by pavanky</title>
        <link rel="alternate" type="text/html" href="http://forums.accelereyes.com/forums/viewtopic.php?f=17&amp;t=4016&amp;p=11918#p11918"/>
        <published>2012-05-16T20:05:38+00:00</published>
        <updated>2012-05-16T20:05:38+00:00</updated>
        <id>http://forums.accelereyes.com/forums/viewtopic.php?f=17&amp;t=4016&amp;p=11918#p11918</id>
        <author>
            <name>pavanky</name>
        </author>
        <category term="Programming &amp; Development with ArrayFire for C, C++, Fortran, and Python" />
        <content type="html"><![CDATA[Hi eric,<br /><br />can you provide a sample code that is causing this problem ?]]></content>
        <summary type="html"><![CDATA[Hi eric,<br /><br />can you provide a sample code that is causing this problem ?]]></summary>
    </entry>
    <entry>
        <title>Programming &amp; Development with ArrayFire for C, C++, Fortran, and Python :: Re: Using arrays in ArrayFire :: Reply by pavanky</title>
        <link rel="alternate" type="text/html" href="http://forums.accelereyes.com/forums/viewtopic.php?f=17&amp;t=4014&amp;p=11919#p11919"/>
        <published>2012-05-16T20:10:28+00:00</published>
        <updated>2012-05-16T20:10:28+00:00</updated>
        <id>http://forums.accelereyes.com/forums/viewtopic.php?f=17&amp;t=4014&amp;p=11919#p11919</id>
        <author>
            <name>pavanky</name>
        </author>
        <category term="Programming &amp; Development with ArrayFire for C, C++, Fortran, and Python" />
        <content type="html"><![CDATA[Hi xiong,<br /><br />two things.<br /><br />- ArrayFire is zero based. so 1:15 would be 0:14.<br />- To get sequences, you qill have to use seq<br /><br /><br />seq can be used in two ways.<br /><br />1) seq(start, end) will produce start, start+1, start+2, ..., end.<br />example: start(3, 5) == 3, 4, 5. seq(0, 4) == 0, 1, 2, 3, 4.<br />2) seq(elements)  will produce 0, 1, 2, 3, 4, .... end - 1;<br />example seq(10) == 0, 1, 2, 3, 4, 5, ... 9;<br /><br />so in your sampe code it can be one of the following<br />- dopmag(span, span, seq(0, zsamples - 1));<br />- dopmag(span, span, seq(zsamples));]]></content>
        <summary type="html"><![CDATA[Hi xiong,<br /><br />two things.<br /><br />- ArrayFire is zero based. so 1:15 would be 0:14.<br />- To get sequences, you qill have to use seq<br /><br /><br />seq can be used in two ways.<br /><br />1) seq(start, end) will produce start, start+1, start+2, ..., end.<br />example: start(3, 5) == 3, 4, 5. seq(0, 4) == 0, 1, 2, 3, 4.<br />2) seq(elements)  will produce 0, 1, 2, 3, 4, .... end - 1;<br />example seq(10) == 0, 1, 2, 3, 4, 5, ... 9;<br /><br />so in your sampe code it can be one of the following<br />- dopmag(span, span, seq(0, zsamples - 1));<br />- dopmag(span, span, seq(zsamples));]]></summary>
    </entry>
    <entry>
        <title>Programming &amp; Development with ArrayFire for C, C++, Fortran, and Python :: Re: How doe interp() work? :: Reply by pavanky</title>
        <link rel="alternate" type="text/html" href="http://forums.accelereyes.com/forums/viewtopic.php?f=17&amp;t=4020&amp;p=11920#p11920"/>
        <published>2012-05-16T20:21:06+00:00</published>
        <updated>2012-05-16T20:21:06+00:00</updated>
        <id>http://forums.accelereyes.com/forums/viewtopic.php?f=17&amp;t=4020&amp;p=11920#p11920</id>
        <author>
            <name>pavanky</name>
        </author>
        <category term="Programming &amp; Development with ArrayFire for C, C++, Fortran, and Python" />
        <content type="html"><![CDATA[Hi xiong,<br /><br />This is a bug in interp. We are fixing this asap. When fixed, interp should work based on indices provided by hAi and not make any assumptions.]]></content>
        <summary type="html"><![CDATA[Hi xiong,<br /><br />This is a bug in interp. We are fixing this asap. When fixed, interp should work based on indices provided by hAi and not make any assumptions.]]></summary>
    </entry>
    <entry>
        <title>Programming &amp; Development with ArrayFire for C, C++, Fortran, and Python :: Re: max() function's result is not correct/desired? :: Reply by pavanky</title>
        <link rel="alternate" type="text/html" href="http://forums.accelereyes.com/forums/viewtopic.php?f=17&amp;t=3922&amp;p=11922#p11922"/>
        <published>2012-05-16T20:53:26+00:00</published>
        <updated>2012-05-16T20:53:26+00:00</updated>
        <id>http://forums.accelereyes.com/forums/viewtopic.php?f=17&amp;t=3922&amp;p=11922#p11922</id>
        <author>
            <name>pavanky</name>
        </author>
        <category term="Programming &amp; Development with ArrayFire for C, C++, Fortran, and Python" />
        <content type="html"><![CDATA[Kenneth,<br /><br />This is a bug and is being fixed.]]></content>
        <summary type="html"><![CDATA[Kenneth,<br /><br />This is a bug and is being fixed.]]></summary>
    </entry>
    <entry>
        <title>Programming &amp; Development with ArrayFire for C, C++, Fortran, and Python :: Re: How best to initialize an array? :: Reply by pavanky</title>
        <link rel="alternate" type="text/html" href="http://forums.accelereyes.com/forums/viewtopic.php?f=17&amp;t=4021&amp;p=11917#p11917"/>
        <published>2012-05-16T19:57:41+00:00</published>
        <updated>2012-05-16T19:57:41+00:00</updated>
        <id>http://forums.accelereyes.com/forums/viewtopic.php?f=17&amp;t=4021&amp;p=11917#p11917</id>
        <author>
            <name>pavanky</name>
        </author>
        <category term="Programming &amp; Development with ArrayFire for C, C++, Fortran, and Python" />
        <content type="html"><![CDATA[Hi,<br /><br />The shortcut is failing because the compiler can not figure out the data type of {1, 2, 3, 4, 5};<br /><br />If you specify the data type in the following manner, it should work.<br /><br /><dl class="codebox"><dt>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></dt><dd><code> af::array myArray(1, 5, (float&#91;&#93;){1, 2, 3, 4, 5});<br />&nbsp; &nbsp; print(myArray);<br /></code></dd></dl><br /><br /><blockquote class="uncited"><div>myArray =  <br />           1.0000        2.0000        3.0000        4.0000        5.0000<br /></div></blockquote>]]></content>
        <summary type="html"><![CDATA[Hi,<br /><br />The shortcut is failing because the compiler can not figure out the data type of {1, 2, 3, 4, 5};<br /><br />If you specify the data type in the following manner, it should work.<br /><br /><dl class="codebox"><dt>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></dt><dd><code> af::array myArray(1, 5, (float&#91;&#93;){1, 2, 3, 4, 5});<br />&nbsp; &nbsp; print(myArray);<br /></code></dd></dl><br /><br /><blockquote class="uncited"><div>myArray =  <br />           1.0000        2.0000        3.0000        4.0000        5.0000<br /></div></blockquote>]]></summary>
    </entry>
    <entry>
        <title>Programming &amp; Development with ArrayFire for C, C++, Fortran, and Python :: Re: How best to initialize an array? :: Reply by xiongtx</title>
        <link rel="alternate" type="text/html" href="http://forums.accelereyes.com/forums/viewtopic.php?f=17&amp;t=4021&amp;p=11927#p11927"/>
        <published>2012-05-17T13:38:59+00:00</published>
        <updated>2012-05-17T13:38:59+00:00</updated>
        <id>http://forums.accelereyes.com/forums/viewtopic.php?f=17&amp;t=4021&amp;p=11927#p11927</id>
        <author>
            <name>xiongtx</name>
        </author>
        <category term="Programming &amp; Development with ArrayFire for C, C++, Fortran, and Python" />
        <content type="html"><![CDATA[The code snippet does not compile. I get a <br /><br /><dl class="codebox"><dt>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></dt><dd><code>Error: type name not allowed</code></dd></dl><br /><br />error.]]></content>
        <summary type="html"><![CDATA[The code snippet does not compile. I get a <br /><br /><dl class="codebox"><dt>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></dt><dd><code>Error: type name not allowed</code></dd></dl><br /><br />error.]]></summary>
    </entry>
    <entry>
        <title>Programming &amp; Development with ArrayFire for C, C++, Fortran, and Python :: Re: How best to initialize an array? :: Reply by malcolm</title>
        <link rel="alternate" type="text/html" href="http://forums.accelereyes.com/forums/viewtopic.php?f=17&amp;t=4021&amp;p=11928#p11928"/>
        <published>2012-05-17T15:30:10+00:00</published>
        <updated>2012-05-17T15:30:10+00:00</updated>
        <id>http://forums.accelereyes.com/forums/viewtopic.php?f=17&amp;t=4021&amp;p=11928#p11928</id>
        <author>
            <name>malcolm</name>
        </author>
        <category term="Programming &amp; Development with ArrayFire for C, C++, Fortran, and Python" />
        <content type="html"><![CDATA[Depends on what compiler you're using.  Pretty much all compilers should support this vanilla method.  Both this and what Pavan posted have the same performance.<br /><br /><dl class="codebox"><dt>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></dt><dd><code>float ha&#91;&#93; = { 1, 2, 3, 4 };<br />array a(2, 2, ha);<br /></code></dd></dl>]]></content>
        <summary type="html"><![CDATA[Depends on what compiler you're using.  Pretty much all compilers should support this vanilla method.  Both this and what Pavan posted have the same performance.<br /><br /><dl class="codebox"><dt>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></dt><dd><code>float ha&#91;&#93; = { 1, 2, 3, 4 };<br />array a(2, 2, ha);<br /></code></dd></dl>]]></summary>
    </entry>
</feed>

