Fuxianjun

kernel lead to crash

Discussion created by Fuxianjun on Jul 1, 2010
Latest reply on Jul 1, 2010 by Illusio

Why does this kernel lead my computer crash? To assign value to matrix with the size of p*q.

__kernel void test( __global float * matrix, __global int * p, __global int * q) { for(int i=0;i<p[0];i++) { for(int j=0;j<q[0];j++) { matrix[i]=1.0; } } }

Outcomes