Added waitAllUnit.

This helps type inference when you are running OpenCL for side effects
only.