using cudaEventRecord for benchmarking