Menu

#39 HLSL error in AT code

open
nobody
brcc (29)
5
2009-06-03
2009-06-03
Gaurav Garg
No

Following kernel gives HLSL error for AT code -

kernel void calcular_eq_calor(double input[],double dt,double dx,double t_final,double x_final,double alpha,int nx,int num_processos,out double output<>)
{
double i , m;
double x , t , beta;

t = 0.0;
m = 0.0;
beta = (alpha*dx*dx)/dt;

while (t <= t_final)
{
// ======================== BEGIN ========================
i = 1.0;
x = (double) i*dx;
while (x < x_final)
{
// ============== BEGIN =============
output = (input[i+1.0] - (2.0 - beta)* input[i] + input[i-1.0])/beta;
// =============== END ===============
i++;
x = (double) i*dx;
}
// ========================= END =========================
m++;
t = (double) m*dt;
}
}

Discussion


Log in to post a comment.

MongoDB Logo MongoDB