Error in PTX Instruction

26 views
Skip to first unread message

Diogo Sampaio

unread,
May 9, 2013, 4:54:06 AM5/9/13
to gpuo...@googlegroups.com
Hi oceloter's

Found a bug in
ir/implementation/PTXInstruction.cpp

for instruction "Sust" PTX isa states that.vec = { none, .v2, .v4 };
How ever, when using PTXOptimizer, the input instruction

sust.b.3d.b8.trap [volumeTexOut, {%,%,%,%}], {%};
is translated to
sust.b.3d.v1.b8.trap [volumeTexOut, {%,%,%,%}], {%};
generating error when compiling JIT.

the sust writing rule should not write v1. So where it reads
             return guard() + "sust" + toString(formatMode) + "."
                 + toString(geometry) + "."
                 + toString(vec) + "." + PTXOperand::toString(type)
                 + toString(clamp) + " [" + d.toString() +", " + a.toString()
                 + "], " + b.toString();

it should be
             return guard() + "sust" + toString(formatMode) + "."
                 + toString(geometry) + "."
                 + ((vec != Vec::v1)?toString(vec)+".":"") + PTXOperand::toString(type)
                 + toString(clamp) + " [" + d.toString() +", " + a.toString()
                 + "], " + b.toString();

Warm regards

--
Diogo Nunes Sampaio

Greg Diamos

unread,
May 9, 2013, 1:29:35 PM5/9/13
to gpuo...@googlegroups.com

Thanks Diogo.  I'll make the change today.

Regards,

Greg

--
You received this message because you are subscribed to the Google Groups "gpuocelot" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gpuocelot+...@googlegroups.com.
To post to this group, send email to gpuo...@googlegroups.com.
Visit this group at http://groups.google.com/group/gpuocelot?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages