c_code() for GpuCAReduce.

This is not pretty code, but it is working code.