[libc-commits] [libc] [libc] Polish GPU benchmarking (PR #153900)
    Joseph Huber via libc-commits 
    libc-commits at lists.llvm.org
       
    Fri Aug 15 16:29:14 PDT 2025
    
    
  
================
@@ -66,7 +64,7 @@ template <typename F, typename T>
   uint64_t stop = gpu::processor_clock();
   cpp::atomic_thread_fence(cpp::MemoryOrder::ACQ_REL);
   asm("" ::"r"(stop));
-  volatile T output = result;
+  volatile auto output = result;
----------------
jhuber6 wrote:
Weird that we need this here and not in the AMDGPU version, seems weird that these wouldn't be the same type. What were you seeing here?
https://github.com/llvm/llvm-project/pull/153900
    
    
More information about the libc-commits
mailing list