how to compute for loop in parallel

Hai guys,

 how to run the for loop parallel using opencl to compute lookup table,anyone provide some example code (with host and opencl programming)