We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
latency()
1 parent 607f4e7 commit 6642c9aCopy full SHA for 6642c9a
libc/benchmarks/gpu/timing/nvptx/timing.h
@@ -64,7 +64,7 @@ template <typename F, typename T>
64
uint64_t stop = gpu::processor_clock();
65
cpp::atomic_thread_fence(cpp::MemoryOrder::ACQ_REL);
66
asm("" ::"r"(stop));
67
- volatile T output = result;
+ volatile auto output = result;
68
69
// Return the time elapsed.
70
return stop - start;
0 commit comments