gpu => cuda, also adding conditional compilation to cuda-specific code

Change-Id: I172525445556c81a567677d6af2db991bc723b9b