cuda: missing return value