<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to use C++ AMP from C#</title><link>http://blogs.msdn.com/b/pfxteam/archive/2011/09/20/how-to-use-c-amp-from-c.aspx</link><description>[Updated 5/17/2012 for Visual Studio 11 Beta] 
 In Visual Studio 11 Beta , C++ AMP enables you to accelerate your applications using heterogeneous hardware such as GPUs. 
 If you are a .NET developer, you can still use C++ AMP in your applications.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How to use C++ AMP from C#</title><link>http://blogs.msdn.com/b/pfxteam/archive/2011/09/20/how-to-use-c-amp-from-c.aspx#10306867</link><pubDate>Fri, 18 May 2012 17:07:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10306867</guid><dc:creator>Daniel Griffing</dc:creator><description>&lt;p&gt;SB, et al. &amp;nbsp;The attached sample and code within the post have been updated to use the Visual Studio 11 Beta syntax.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10306867" width="1" height="1"&gt;</description></item><item><title>re: How to use C++ AMP from C#</title><link>http://blogs.msdn.com/b/pfxteam/archive/2011/09/20/how-to-use-c-amp-from-c.aspx#10288272</link><pubDate>Wed, 28 Mar 2012 01:00:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10288272</guid><dc:creator>DanielMoth</dc:creator><description>&lt;p&gt;SB, I&amp;#39;ll get in touch with Igor about updating the sample. &lt;/p&gt;
&lt;p&gt;In the meantime, please see changes to the Beta on our blog here:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/b/nativeconcurrency/archive/2012/02/29/changes-in-vs-11-beta-for-c-amp.aspx"&gt;blogs.msdn.com/.../changes-in-vs-11-beta-for-c-amp.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As you can see there, you should change &lt;/p&gt;
&lt;p&gt;grid to extent, &lt;/p&gt;
&lt;p&gt;and change &lt;/p&gt;
&lt;p&gt;restrict(direct3d) to restrict(amp). &lt;/p&gt;
&lt;p&gt;You can probably delete the word mutable, that is rarelly needed.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10288272" width="1" height="1"&gt;</description></item><item><title>re: How to use C++ AMP from C#</title><link>http://blogs.msdn.com/b/pfxteam/archive/2011/09/20/how-to-use-c-amp-from-c.aspx#10277604</link><pubDate>Mon, 05 Mar 2012 11:04:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10277604</guid><dc:creator>SB</dc:creator><description>&lt;p&gt;Outdated sample, I guess, since the documentation would seem to agree with the compiler&amp;#39;s assessment. Perhaps working samples could be provided? I&amp;#39;m sure we&amp;#39;d all appreciate that.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10277604" width="1" height="1"&gt;</description></item><item><title>re: How to use C++ AMP from C#</title><link>http://blogs.msdn.com/b/pfxteam/archive/2011/09/20/how-to-use-c-amp-from-c.aspx#10277598</link><pubDate>Mon, 05 Mar 2012 10:51:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10277598</guid><dc:creator>SB</dc:creator><description>&lt;p&gt;So, this line doesn&amp;#39;t compile at all in Visual Studio 11 (Ultimate) Beta and Windows 7:&lt;/p&gt;
&lt;p&gt;parallel_for_each(dataView.grid, [=] (index&amp;lt;1&amp;gt; idx) mutable restrict(direct3d)&lt;/p&gt;
&lt;p&gt;error C2039: &amp;#39;grid&amp;#39; : is not a member of &amp;#39;Concurrency::array_view&amp;lt;_Value_type,_Rank&amp;gt;&amp;#39;&lt;/p&gt;
&lt;p&gt;error C3936: &amp;#39;direct3d&amp;#39; : unrecognized restriction specifier&lt;/p&gt;
&lt;p&gt;What&amp;#39;s the frequency, Kenneth?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10277598" width="1" height="1"&gt;</description></item><item><title>re: How to use C++ AMP from C#</title><link>http://blogs.msdn.com/b/pfxteam/archive/2011/09/20/how-to-use-c-amp-from-c.aspx#10242671</link><pubDate>Wed, 30 Nov 2011 02:26:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10242671</guid><dc:creator>Any ideas for debugging?</dc:creator><description>&lt;p&gt;See: &lt;a rel="nofollow" target="_new" href="http://social.msdn.microsoft.com/Forums/en-US/parallelcppnative/thread/46da1c69-cf2f-4f24-8d83-531d67af1848"&gt;social.msdn.microsoft.com/.../46da1c69-cf2f-4f24-8d83-531d67af1848&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10242671" width="1" height="1"&gt;</description></item><item><title>re: How to use C++ AMP from C#</title><link>http://blogs.msdn.com/b/pfxteam/archive/2011/09/20/how-to-use-c-amp-from-c.aspx#10233259</link><pubDate>Wed, 02 Nov 2011 22:40:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10233259</guid><dc:creator>pozi</dc:creator><description>&lt;p&gt;Sorry, now I am just reading that GPU debugging is not supported on Win7.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10233259" width="1" height="1"&gt;</description></item><item><title>re: How to use C++ AMP from C#</title><link>http://blogs.msdn.com/b/pfxteam/archive/2011/09/20/how-to-use-c-amp-from-c.aspx#10232771</link><pubDate>Wed, 02 Nov 2011 21:07:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10232771</guid><dc:creator>pozi</dc:creator><description>&lt;p&gt;Thanks, great! Hower I have one problem. Debugging is not working. Do you know why?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10232771" width="1" height="1"&gt;</description></item></channel></rss>