Skip to content

Commit 6642c9a

Browse files
Fix precision-loss warning in NVPTX version of latency()
1 parent 607f4e7 commit 6642c9a

File tree

1 file changed

+1
-1
lines changed
  • libc/benchmarks/gpu/timing/nvptx

1 file changed

+1
-1
lines changed

libc/benchmarks/gpu/timing/nvptx/timing.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ template <typename F, typename T>
6464
uint64_t stop = gpu::processor_clock();
6565
cpp::atomic_thread_fence(cpp::MemoryOrder::ACQ_REL);
6666
asm("" ::"r"(stop));
67-
volatile T output = result;
67+
volatile auto output = result;
6868

6969
// Return the time elapsed.
7070
return stop - start;

0 commit comments

Comments
 (0)