假设我调用 cudaEventElapsedTime()
并获取 0.123456
的返回值。那么它建议的确切时间是什么时候?
最佳答案
As stated in the documentation ,函数 cudaEventElapsedTime
以毫秒为单位返回两个事件之间耗时。它的分辨率约为 0.5 微秒。
所以值 0.123456
表示指定事件之间的耗时是 0.123456
毫秒。
关于cuda - cudaEventElapsedTime() 的精度是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21873401/