Fix linear variation typo

This commit is contained in:
Steven Robertson 2010-09-12 17:38:51 -04:00
parent 5c5122e8c8
commit 2f48d01aa9
2 changed files with 2 additions and 1 deletions

View File

@ -106,6 +106,7 @@ class IterThread(PTXEntryPoint):
label('iter_loop_choose_xform') label('iter_loop_choose_xform')
with block("Choose the xform for each warp"): with block("Choose the xform for each warp"):
timeout.check_time(5)
comment("On subsequent runs, only warp 0 will hit this code") comment("On subsequent runs, only warp 0 will hit this code")
reg.u32('x_addr x_offset') reg.u32('x_addr x_offset')
reg.f32('xf_sel') reg.f32('xf_sel')

View File

@ -110,7 +110,7 @@ class Variations(PTXFragment):
@ptx_func @ptx_func
def linear(self, xo, yo, xi, yi, wgt): def linear(self, xo, yo, xi, yi, wgt):
op.fma.rn.ftz.f32(xo, xi, wgt, xo) op.fma.rn.ftz.f32(xo, xi, wgt, xo)
op.fma.rn.ftz.f32(yo, yi, wgt, xo) op.fma.rn.ftz.f32(yo, yi, wgt, yo)
@ptx_func @ptx_func
def sinusoidal(self, xo, yo, xi, yi, wgt): def sinusoidal(self, xo, yo, xi, yi, wgt):