OpenCL Thread Creation!

Discussion created by evk8888 on Sep 28, 2011
Latest reply on Oct 6, 2011 by evk8888
Number of threads created when a opencl program is run?


I have a basic matrix multiplication opencl code and when i run the code with gdb, i see that there is thread creation equal to the number of processing elements in the system 


[New Thread 0x7ffff2c5e710 (LWP 23553)]

[New Thread 0x7ffff285d710 (LWP 23554)]

also if i set the max compute units variable to any number, the number of threads created is always the same (=processing elements). Is there any explanation for this and is there a way to control this creation of threads?? thanks in advance.