first complete attempt at rt with cuda