Menu

#48 Calling Gather Kernel from Parent Kernel cause HLSL error

1.5
open
nobody
brcc (29)
5
2009-11-25
2009-09-30
No

kernel void calcular_eq_calor(double input[], out double output<>, double beta, double inverted_beta, double qtd_loop)
{
double m ,beta_in;
double t;

int i = instance().x;
int j = i + 1;
int l = i -1;

beta_in = 2.0 - beta;

t = 0.0;
m = 0.0;

if(input[i] == 0.0)
output = 0.0;
else
{
if(qtd_loop < (double)i)
output = 0.0;
else
output = (input[j] - (beta_in * input[i]) + input[l]) * inverted_beta;
}
}

kernel void teste(out double input<>, out double output<>, double beta, double inverted_beta, double qtd_loop)
{
calcular_eq_calor(input,output,beta,inverted_beta,qtd_loop);

calcular_eq_calor(output,input,beta,inverted_beta,qtd_loop);

}

Discussion

  • Gaurav Garg

    Gaurav Garg - 2009-11-25
    • summary: giving hlsl error instead of normal compilation error --> Calling Gather Kernel from Parent Kernel cause HLSL error
     
  • Gaurav Garg

    Gaurav Garg - 2009-11-25

    This kernel gives hlsl error instead of normal compilation error

     

Log in to post a comment.

MongoDB Logo MongoDB