cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

scutan
Journeyman III

Simple code makes my computer bluegreen

Hi, my OS is vista 64 bit edition, and if I run the following code, I can't move my mouse, and in about 10 seconds, my computer turns bluegreen.

kernel void test(out double out_put[])
{
 int i;
 
 int begin = (int)0;
 int end = (int)267366760;
 
 double d = 1.0;
 
 for (i = begin; i < end; i++)
  d++;

 out_put[0] = d;
}

But if I change the `end` value to 26736676, it works ok.

So, is it the problem of the device driver of vista 64? I am using the FireStream 9270.

Thanks very much!

 

0 Likes
3 Replies
gaurav_garg
Adept I

Did you disable VPU recover? Take a look at CAL FAQs on how to run large kernels on the GPU.

0 Likes

Thanks.

0 Likes
Gipsel
Adept I

Originally posted by: scutan Hi, my OS is vista 64 bit edition, and if I run the following code, I can't move my mouse, and in about 10 seconds, my computer turns bluegreen.

kernel void test(out double out_put[]){  int i;    int begin = (int)0;  int end = (int)267366760;    double d = 1.0;    for (i = begin; i < end; i++)   d++;

 out_put[0] = d; }

But if I change the `end` value to 26736676, it works ok.



As gaurav pointed out, that kernel is simply running very long. But I wonder what it is supposed to do?

Just for setting the first element of the stream to the value of 'end' it is a bit much effort

0 Likes