not compiling, but much closer to event based cudadrv