reduction kernel causes compilation hanging

Discussion created by rick.weber on Mar 14, 2009
Latest reply on Mar 15, 2009 by rick.weber

Is instance() not supported in reduction kernels? I want to sum all the lower triangular elements in a matrix, so I do

reduce void reduction(float input<>, reduce float output)
int4 curDomainPt = instance()
if(curDomainPt.y > curDomainPt.x)
output += input;

When I run this in brcc, it hangs indefinitely and doesn't print anything. I'm using SDK version 1.3, as we haven't had time to upgrade yet as we have WIP that we don't want to accidently break.