Fix CUDA-aware compile error introduces with r29581.