Skip to content

Commit

Permalink
Update sql-plugin/src/main/scala/com/nvidia/spark/rapids/GpuPartition…
Browse files Browse the repository at this point in the history
…ing.scala

Co-authored-by: Jason Lowe <[email protected]>
  • Loading branch information
sperlingxx and jlowe authored Dec 18, 2024
1 parent 00580a0 commit 85e84eb
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,6 @@ trait GpuPartitioning extends Partitioning {
* be called at the query planning stage. Therefore, this method is NOT thread safe.
*/
def setupDebugMetrics(metrics: Map[String, GpuMetric]): Unit = {
// Check and set GpuPartitioning.CopyToHostTime
if (memCopyTime.isEmpty) {
metrics.get(GpuPartitioning.CopyToHostTime).foreach { metric =>
memCopyTime = Some(metric)
}
}
memCopyTime = metrics.get(GpuPartitioning.CopyToHostTime).getOrElse(NoopMetric)
}
}

0 comments on commit 85e84eb

Please sign in to comment.