Simple red/blue computation done in CUDA C.