cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

ninja2010
Journeyman III

Help! 'SimpleGL' sample of ATi Stream SDK v2.2 crashes when window is minimalized.

My comupter's configuration is as following:

CPU : Intel(R) Pentium(R) 4 CPU 3.00Hz

Display Adapter : Intel(R) 946GZ Express Chipset Family

OS : Windows XP SP2

 

I had updated my graphic card driver to let it to support OpenGL 2.0.

And I added one line in the source code to let 'SimpleGL' sample to work totally on CPU(Because there is no extra OpenCL ICD for Intel graphic chip installed in my machine). For detail, see blow:

int SimpleGL::setupCL()

{

    cl_int status = CL_SUCCESS;

 

    cl_device_type dType;

 

    if(deviceType.compare("cpu") == 0)

    {

        dType = CL_DEVICE_TYPE_CPU;

    }

    else //deviceType = "gpu" 

    {

        dType = CL_DEVICE_TYPE_GPU;

    }

 

//>>>>Code I added...

dType = CL_DEVICE_TYPE_ALL;



 

There is  no error occured when I built the sample. When excuting, it also seems okay. But, when I minimalized the window of the sample, the program crashed. I don't know why. Is this a bug of SDK's Lib?

0 Likes
1 Reply
himanshu_gautam
Grandmaster

ninja2010,

Tat is quite strange problem. I checked on my AMD Athlon system but do not find any such issue. Can you tell which device is selected when you run your modified simpleGL sample.

0 Likes