<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: CUDA cuPrintf</title>
	<atom:link href="http://www.jeremykemp.co.uk/08/02/2010/cuda-cuprintf/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jeremykemp.co.uk/08/02/2010/cuda-cuprintf/</link>
	<description>//TODO</description>
	<lastBuildDate>Fri, 14 Oct 2011 06:56:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Nvidia Tesla</title>
		<link>http://www.jeremykemp.co.uk/08/02/2010/cuda-cuprintf/comment-page-1/#comment-554</link>
		<dc:creator>Nvidia Tesla</dc:creator>
		<pubDate>Fri, 14 Oct 2011 06:56:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykemp.co.uk/?p=124#comment-554</guid>
		<description>&lt;strong&gt;Nvidia Tesla...&lt;/strong&gt;

[...]CUDA cuPrintf &#187; Jeremy Kemp[...]...</description>
		<content:encoded><![CDATA[<p><strong>Nvidia Tesla&#8230;</strong></p>
<p>[...]CUDA cuPrintf &raquo; Jeremy Kemp[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.jeremykemp.co.uk/08/02/2010/cuda-cuprintf/comment-page-1/#comment-529</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Fri, 01 Jul 2011 16:13:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykemp.co.uk/?p=124#comment-529</guid>
		<description>I&#039;m glad that you managed to fix the problem. I&#039;m not sure why you had to re-compile for a lower architecture. I was under the impression that it worked better with newer architectures!

As far as I&#039;m aware, there hasn&#039;t been an update since its initial release.</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad that you managed to fix the problem. I&#8217;m not sure why you had to re-compile for a lower architecture. I was under the impression that it worked better with newer architectures!</p>
<p>As far as I&#8217;m aware, there hasn&#8217;t been an update since its initial release.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prairie Rose</title>
		<link>http://www.jeremykemp.co.uk/08/02/2010/cuda-cuprintf/comment-page-1/#comment-527</link>
		<dc:creator>Prairie Rose</dc:creator>
		<pubDate>Fri, 01 Jul 2011 15:32:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykemp.co.uk/?p=124#comment-527</guid>
		<description>Hey, sorry to spam.  We tracked down the problem.  Our system uses SM20 architecture, so it was getting into an empty else case.  We compiled again with SM11 and got output. 

Do you know if there are updates out there for newer architectures?</description>
		<content:encoded><![CDATA[<p>Hey, sorry to spam.  We tracked down the problem.  Our system uses SM20 architecture, so it was getting into an empty else case.  We compiled again with SM11 and got output. </p>
<p>Do you know if there are updates out there for newer architectures?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prairie Rose</title>
		<link>http://www.jeremykemp.co.uk/08/02/2010/cuda-cuprintf/comment-page-1/#comment-526</link>
		<dc:creator>Prairie Rose</dc:creator>
		<pubDate>Fri, 01 Jul 2011 14:49:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykemp.co.uk/?p=124#comment-526</guid>
		<description>Hi, 

Thanks for getting back to me.  Unfortunately, we&#039;re don&#039;t have Fermi architecture.  We&#039;re using a Tesla C1060 with a CPU running Ubuntu 9.10, and Cuda 3.1.   This was the file that we&#039;re trying to test.  Ideally, we want it to print out &quot;42&quot;.  
-----------------------------------------------
#include 
#include &quot;cuPrintf.cu&quot;


__global__ void printTest() {
  	
  int tid = 42;
  cuPrintf(&quot;%d\n&quot;, tid);
  }

int main() {
    cudaPrintfInit();  
    printTest&lt;&lt;&gt;&gt;();
    cudaPrintfDisplay(stdout, true);
    fflush(stdout);
    cudaPrintfEnd();
    return 0; 
}

-----------------------------------------------

Incidentally, we tried adding the cuPrintf files to our Makefile (standard NVIDIA make)  which gave us redefinition errors, so our makefile looks like this:

-----------------------------------------------
# Add source files here
EXECUTABLE	:= printTest
# Cuda source files (compiled with cudacc)
CUFILES		:= printTest.cu 
# C/C++ source files (compiled with gcc / c++)
CCFILES		:= 

include ../../common/common.mk

-----------------------------------------------

Do you see anything obvious?</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>Thanks for getting back to me.  Unfortunately, we&#8217;re don&#8217;t have Fermi architecture.  We&#8217;re using a Tesla C1060 with a CPU running Ubuntu 9.10, and Cuda 3.1.   This was the file that we&#8217;re trying to test.  Ideally, we want it to print out &#8220;42&#8243;.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
#include<br />
#include &#8220;cuPrintf.cu&#8221;</p>
<p>__global__ void printTest() {</p>
<p>  int tid = 42;<br />
  cuPrintf(&#8220;%d\n&#8221;, tid);<br />
  }</p>
<p>int main() {<br />
    cudaPrintfInit();<br />
    printTest&lt;&lt;&gt;&gt;();<br />
    cudaPrintfDisplay(stdout, true);<br />
    fflush(stdout);<br />
    cudaPrintfEnd();<br />
    return 0;<br />
}</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Incidentally, we tried adding the cuPrintf files to our Makefile (standard NVIDIA make)  which gave us redefinition errors, so our makefile looks like this:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
# Add source files here<br />
EXECUTABLE	:= printTest<br />
# Cuda source files (compiled with cudacc)<br />
CUFILES		:= printTest.cu<br />
# C/C++ source files (compiled with gcc / c++)<br />
CCFILES		:= </p>
<p>include ../../common/common.mk</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Do you see anything obvious?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.jeremykemp.co.uk/08/02/2010/cuda-cuprintf/comment-page-1/#comment-524</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Thu, 30 Jun 2011 20:58:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykemp.co.uk/?p=124#comment-524</guid>
		<description>Hi there,

That is strange that the code doesn&#039;t work. What GPU are you using? Fermi GPU&#039;s now support the standard printf statement, without the need for cuPrintf.</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>That is strange that the code doesn&#8217;t work. What GPU are you using? Fermi GPU&#8217;s now support the standard printf statement, without the need for cuPrintf.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.jeremykemp.co.uk/08/02/2010/cuda-cuprintf/comment-page-1/#comment-523</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Thu, 30 Jun 2011 20:57:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykemp.co.uk/?p=124#comment-523</guid>
		<description>Nope, these are the only files that you need.</description>
		<content:encoded><![CDATA[<p>Nope, these are the only files that you need.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prairie Rose</title>
		<link>http://www.jeremykemp.co.uk/08/02/2010/cuda-cuprintf/comment-page-1/#comment-522</link>
		<dc:creator>Prairie Rose</dc:creator>
		<pubDate>Thu, 30 Jun 2011 20:40:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykemp.co.uk/?p=124#comment-522</guid>
		<description>Do we need any other files besides cuPrintf.cuh and cuPrintf.cu?</description>
		<content:encoded><![CDATA[<p>Do we need any other files besides cuPrintf.cuh and cuPrintf.cu?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prairie Rose</title>
		<link>http://www.jeremykemp.co.uk/08/02/2010/cuda-cuprintf/comment-page-1/#comment-521</link>
		<dc:creator>Prairie Rose</dc:creator>
		<pubDate>Thu, 30 Jun 2011 20:39:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykemp.co.uk/?p=124#comment-521</guid>
		<description>Hey,

So I know this thread is a little old, but it is no less relevant.

I&#039;m trying to get print statements to work with cuda 3.1 (on Ubuntu linux 9.10)  and having very little success.  I tried copying your code into a toy project, and it compiled fine, but it didn&#039;t print anything.  I&#039;ve done a little digging into the source code, but I can&#039;t find anything obvious.  Any idea what might be going on?</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>So I know this thread is a little old, but it is no less relevant.</p>
<p>I&#8217;m trying to get print statements to work with cuda 3.1 (on Ubuntu linux 9.10)  and having very little success.  I tried copying your code into a toy project, and it compiled fine, but it didn&#8217;t print anything.  I&#8217;ve done a little digging into the source code, but I can&#8217;t find anything obvious.  Any idea what might be going on?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: elect</title>
		<link>http://www.jeremykemp.co.uk/08/02/2010/cuda-cuprintf/comment-page-1/#comment-504</link>
		<dc:creator>elect</dc:creator>
		<pubDate>Thu, 19 May 2011 11:26:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykemp.co.uk/?p=124#comment-504</guid>
		<description>Yep, i thought the same since I never touched it :p</description>
		<content:encoded><![CDATA[<p>Yep, i thought the same since I never touched it :p</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.jeremykemp.co.uk/08/02/2010/cuda-cuprintf/comment-page-1/#comment-502</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Mon, 16 May 2011 10:29:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykemp.co.uk/?p=124#comment-502</guid>
		<description>It looks like that is just an error from the cuPrintf.cu file so I would imagine that there is nothing to worry about unless you have modified that file yourself.</description>
		<content:encoded><![CDATA[<p>It looks like that is just an error from the cuPrintf.cu file so I would imagine that there is nothing to worry about unless you have modified that file yourself.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

