opencl functions are blocking again for simplicity.