<div class="gmail_quote">On Wed, Mar 9, 2011 at 10:03 PM, Che-Liang Chiou <span dir="ltr"><<a href="mailto:clchiou@gmail.com">clchiou@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Justin,<br>
<br>
There are some backward incompatible features of PTX; for example,<br>
special registers are redefined as v4i32 (they were v4i16) in PTX 2.0.<br>
And CUDA 4.0 was rolled out last week. I heard that some instructions<br>
are deprecated.<br></blockquote><div><br></div><div>I have not checked out CUDA 4.0 yet, but any deprecated instructions would need to be made so as part of a separate PTX version, either 2.2 or 3.0.</div><div><br></div>
<div>My suggestion is to stay thorough with the intrinsics.  Lets create i16 and i32 versions of both, and emit appropriate cvt instructions if necessary for the target PTX version.  This should be easy enough using the existing PTXVersion field in PTXSubtarget.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I am not sure how stable (or unstable) PTX specification is. Do you<br>
have a rough assessment of its stability?<br></blockquote><div><br></div><div>From what I can tell, it is fairly stable.  When things change, they seem to primarily be additions to the ISA.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
If PTX specification is still fast evolving, I would suggest we keep<br>
up with latest specification, and consider backward compatibility<br>
later when it is stabilized. What do you think?<br></blockquote><div><br></div><div>I'm fine with that, as long as later PTX versions do not require later shader models.  I want to maintain compatibility as far back as shader model 1.0 for some older hardware I want to test with.  Besides, I think most of the functionality in newer PTX versions can be easily predicated with sub-target flags.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Regards,<br>
<font color="#888888">Che-Liang<br>
</font></blockquote></div><br><br clear="all"><br>-- <br><br><div>Thanks,</div><div><br></div><div>Justin Holewinski</div><br>