<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments for bv2.co.uk</title>
	<atom:link href="http://www.bv2.co.uk/?feed=comments-rss2" rel="self" type="application/rss+xml" />
	<link>http://www.bv2.co.uk</link>
	<description>the same, maybe better?</description>
	<pubDate>Tue, 07 Sep 2010 03:41:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>Comment on Visual Studio 2008 and CUDA by adrian</title>
		<link>http://www.bv2.co.uk/?p=730#comment-6580</link>
		<dc:creator>adrian</dc:creator>
		<pubDate>Wed, 28 Jul 2010 10:41:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.bv2.co.uk/?p=730#comment-6580</guid>
		<description>hello ,

 i`m new to cuda , but i`m trying to learn some new stuff , 
i found this post and i followed the steps , but my text isn`t highlighted .

i am using ms visual studio 2008 prof . i ve installed the gpu driver (gt 320M) , the cuda toolkit (3.1 i think) , the cuda sdk and ran the bandwidthTest which worked and also worked to build and run the bandwidthTest project, too , but the bandwidthTest.cu text in visual studio is still all black ... even after i tried doing what you said right here : 

- copied the usertype.dat file to \IDE folder
- added the .cu extension (...and selected the C++ in the drop down menu)
- selected the CUDA rules from the Custom Build Rules...
- and done the thing with the regedit , even though that is for the intellisense 

if i missed something , please point it out for me ... 

thanks in advance .

//adrian</description>
		<content:encoded><![CDATA[<p>hello ,</p>
<p> i`m new to cuda , but i`m trying to learn some new stuff ,<br />
i found this post and i followed the steps , but my text isn`t highlighted .</p>
<p>i am using ms visual studio 2008 prof . i ve installed the gpu driver (gt 320M) , the cuda toolkit (3.1 i think) , the cuda sdk and ran the bandwidthTest which worked and also worked to build and run the bandwidthTest project, too , but the bandwidthTest.cu text in visual studio is still all black &#8230; even after i tried doing what you said right here : </p>
<p>- copied the usertype.dat file to \IDE folder<br />
- added the .cu extension (&#8230;and selected the C++ in the drop down menu)<br />
- selected the CUDA rules from the Custom Build Rules&#8230;<br />
- and done the thing with the regedit , even though that is for the intellisense </p>
<p>if i missed something , please point it out for me &#8230; </p>
<p>thanks in advance .</p>
<p>//adrian</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Canny Edge Detection by Shak</title>
		<link>http://www.bv2.co.uk/?p=74#comment-6569</link>
		<dc:creator>Shak</dc:creator>
		<pubDate>Wed, 28 Jul 2010 06:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.bv2.co.uk/?p=74#comment-6569</guid>
		<description>Can someone tell me how to apply canny edge detector in x and y-axis separately on an image. i need to find edges in the x-direction and y-direction separately as two edge images. plz guide.</description>
		<content:encoded><![CDATA[<p>Can someone tell me how to apply canny edge detector in x and y-axis separately on an image. i need to find edges in the x-direction and y-direction separately as two edge images. plz guide.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Compute Cube by bv2.co.uk &#187; Blog Archive &#187; PC Design Lab - new case</title>
		<link>http://www.bv2.co.uk/?p=945#comment-5984</link>
		<dc:creator>bv2.co.uk &#187; Blog Archive &#187; PC Design Lab - new case</dc:creator>
		<pubDate>Wed, 07 Jul 2010 09:35:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.bv2.co.uk/?p=945#comment-5984</guid>
		<description>[...] update from PC Design Lab regarding their new case. Those of you who follow the blog will know my ComputeCube machine is built into their QMicro2 case, which has been really good with only one or two tiny [...]</description>
		<content:encoded><![CDATA[<p>[...] update from PC Design Lab regarding their new case. Those of you who follow the blog will know my ComputeCube machine is built into their QMicro2 case, which has been really good with only one or two tiny [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Compute Cube by bv2.co.uk &#187; Blog Archive &#187; Windows 7</title>
		<link>http://www.bv2.co.uk/?p=945#comment-5948</link>
		<dc:creator>bv2.co.uk &#187; Blog Archive &#187; Windows 7</dc:creator>
		<pubDate>Tue, 06 Jul 2010 14:29:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.bv2.co.uk/?p=945#comment-5948</guid>
		<description>[...] one as there is no upgrade path from winXP x64. I took a full backup of my &#8220;ComputeCube&#8221; machine and without bothering to format the C drive just popped the DVD in and [...]</description>
		<content:encoded><![CDATA[<p>[...] one as there is no upgrade path from winXP x64. I took a full backup of my &#8220;ComputeCube&#8221; machine and without bothering to format the C drive just popped the DVD in and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CUDA occupancy calculator by Barrett</title>
		<link>http://www.bv2.co.uk/?p=45#comment-5887</link>
		<dc:creator>Barrett</dc:creator>
		<pubDate>Mon, 05 Jul 2010 07:40:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.bv2.co.uk/?p=45#comment-5887</guid>
		<description>Hi Patricia,

The above post is rather old so if you are using the spreadsheet for occupancy calculations consider switching to the visual profiler.

The number of registers used is decided by the compiler, but you can change the upper bound with the -maxrregcount compiler switch. Be careful with this and check the /cubin file produced as it may make the code more convoluted or start using local memory.  "Local" memory incurs the same performance hit as global mem so it will dramatically slow your kernels down. As for shared memory you can specify the amount used in your kernels by specifying a bound in your array.

Hope this helps.
/Barrett</description>
		<content:encoded><![CDATA[<p>Hi Patricia,</p>
<p>The above post is rather old so if you are using the spreadsheet for occupancy calculations consider switching to the visual profiler.</p>
<p>The number of registers used is decided by the compiler, but you can change the upper bound with the -maxrregcount compiler switch. Be careful with this and check the /cubin file produced as it may make the code more convoluted or start using local memory.  &#8220;Local&#8221; memory incurs the same performance hit as global mem so it will dramatically slow your kernels down. As for shared memory you can specify the amount used in your kernels by specifying a bound in your array.</p>
<p>Hope this helps.<br />
/Barrett</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CUDA occupancy calculator by Patricia</title>
		<link>http://www.bv2.co.uk/?p=45#comment-5877</link>
		<dc:creator>Patricia</dc:creator>
		<pubDate>Sun, 04 Jul 2010 23:06:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.bv2.co.uk/?p=45#comment-5877</guid>
		<description>How do you change values of registers and shared memory? Because this values are defined by compiler...</description>
		<content:encoded><![CDATA[<p>How do you change values of registers and shared memory? Because this values are defined by compiler&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Visual Studio 2008 and CUDA by Barrett</title>
		<link>http://www.bv2.co.uk/?p=730#comment-5412</link>
		<dc:creator>Barrett</dc:creator>
		<pubDate>Tue, 22 Jun 2010 09:39:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.bv2.co.uk/?p=730#comment-5412</guid>
		<description>Hi Ankit,

I'm glad the original article helped.  

It may be a good idea to install the same version of the toolkit and SDK as I think some of the new examples depend on the new toolkit.

Does your practice.cu file have a custom build rule associated with it in your project?  I've also found that if you include a .cu file from another one make sure the included one if excluded from the build - nvcc will read and compile it.

I've only got the PRJ0019 error when one of my paths was incorrect. Or possibly missing "" around it.

Lastly emulation mode is being deprecated (removed) in future releases. This does make testing on windows a bit different but then I suppose NVidia wants everyone to switch to Nexus  ( why win7 only?? ).  Another good reason could be that the emulator and non-emulator usually produce different outputs and led many a developer to go on a wild goose chase.

By the way printf does work from cuda code now - so useful for debugging if you don't have Nexus.

Hope this help.
/Barrett</description>
		<content:encoded><![CDATA[<p>Hi Ankit,</p>
<p>I&#8217;m glad the original article helped.  </p>
<p>It may be a good idea to install the same version of the toolkit and SDK as I think some of the new examples depend on the new toolkit.</p>
<p>Does your practice.cu file have a custom build rule associated with it in your project?  I&#8217;ve also found that if you include a .cu file from another one make sure the included one if excluded from the build - nvcc will read and compile it.</p>
<p>I&#8217;ve only got the PRJ0019 error when one of my paths was incorrect. Or possibly missing &#8220;&#8221; around it.</p>
<p>Lastly emulation mode is being deprecated (removed) in future releases. This does make testing on windows a bit different but then I suppose NVidia wants everyone to switch to Nexus  ( why win7 only?? ).  Another good reason could be that the emulator and non-emulator usually produce different outputs and led many a developer to go on a wild goose chase.</p>
<p>By the way printf does work from cuda code now - so useful for debugging if you don&#8217;t have Nexus.</p>
<p>Hope this help.<br />
/Barrett</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Canny Edge Detection by Barrett</title>
		<link>http://www.bv2.co.uk/?p=74#comment-5411</link>
		<dc:creator>Barrett</dc:creator>
		<pubDate>Tue, 22 Jun 2010 09:15:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.bv2.co.uk/?p=74#comment-5411</guid>
		<description>Hi Nguyen,

Have a look at the Gaussian convolution code available at
http://www.bv2.co.uk/?page_id=863

It gives a fairly optimal solution of the first step in the process.

/Barrett</description>
		<content:encoded><![CDATA[<p>Hi Nguyen,</p>
<p>Have a look at the Gaussian convolution code available at<br />
<a href="http://www.bv2.co.uk/?page_id=863" rel="nofollow">http://www.bv2.co.uk/?page_id=863</a></p>
<p>It gives a fairly optimal solution of the first step in the process.</p>
<p>/Barrett</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Canny Edge Detection Steps by Barrett</title>
		<link>http://www.bv2.co.uk/?p=511#comment-5410</link>
		<dc:creator>Barrett</dc:creator>
		<pubDate>Tue, 22 Jun 2010 09:12:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.bv2.co.uk/?p=511#comment-5410</guid>
		<description>Hi Ajay,

Without actually seeing the results of the individual steps of your Canny Edge I can only guess at possible problems.

Is your Gaussian blur code correct?  Ie dividing by the correct divisor for your mask - a rather easy mistake to make if you hand key your masks in.

Have you tried changing your Gausian blur parameters? Ie changing the width and std deviation of your mask?  The example I gave in the article works in a wide variety of cases but may not be perfect for you.

It is quite easy to make an error in the non-maximum suppression code. The one mentioned in the wikipedia article should work, but there are other ways of doing it. Basically you are looking for a local maximum in the gradient direction you determined in the Canny step. The direction is the angle obtained by: theta = arctan (Gy/Gx).   So if theta is 0 degrees see if the intensity of the pixels above and below are greater than or less than, if both less than we have a local maximum in the correct direction.

Hope this helps you a bit.
/Barrett</description>
		<content:encoded><![CDATA[<p>Hi Ajay,</p>
<p>Without actually seeing the results of the individual steps of your Canny Edge I can only guess at possible problems.</p>
<p>Is your Gaussian blur code correct?  Ie dividing by the correct divisor for your mask - a rather easy mistake to make if you hand key your masks in.</p>
<p>Have you tried changing your Gausian blur parameters? Ie changing the width and std deviation of your mask?  The example I gave in the article works in a wide variety of cases but may not be perfect for you.</p>
<p>It is quite easy to make an error in the non-maximum suppression code. The one mentioned in the wikipedia article should work, but there are other ways of doing it. Basically you are looking for a local maximum in the gradient direction you determined in the Canny step. The direction is the angle obtained by: theta = arctan (Gy/Gx).   So if theta is 0 degrees see if the intensity of the pixels above and below are greater than or less than, if both less than we have a local maximum in the correct direction.</p>
<p>Hope this helps you a bit.<br />
/Barrett</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Visual Studio 2008 and CUDA by Barrett</title>
		<link>http://www.bv2.co.uk/?p=730#comment-5409</link>
		<dc:creator>Barrett</dc:creator>
		<pubDate>Tue, 22 Jun 2010 09:00:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.bv2.co.uk/?p=730#comment-5409</guid>
		<description>Aman,

I currently only have vs2008 installed. But the installation of CUDA into vs2003 should be similar with the possible exception of the custom build rules.  
You may need to set the .cu's to be excluded from the build and then compile the project with nvcc.

Sorry this is not terribly helpful but I havent used vs2003 in a while.

/Barrett</description>
		<content:encoded><![CDATA[<p>Aman,</p>
<p>I currently only have vs2008 installed. But the installation of CUDA into vs2003 should be similar with the possible exception of the custom build rules.<br />
You may need to set the .cu&#8217;s to be excluded from the build and then compile the project with nvcc.</p>
<p>Sorry this is not terribly helpful but I havent used vs2003 in a while.</p>
<p>/Barrett</p>
]]></content:encoded>
	</item>
</channel>
</rss>
