[Mlir-commits] [mlir] [mlir][NVMM] Add `globaltimer_wait` op (PR #129065)

Guray Ozen llvmlistbot at llvm.org
Sat Mar 1 02:30:29 PST 2025


================
@@ -2614,6 +2613,31 @@ def NVVM_Breakpoint : NVVM_Op<"breakpoint"> {
   let assemblyFormat = "attr-dict";
 }
 
+def NVVM_GlobalTimerWaitOp : NVVM_PTXBuilder_Op<"globaltimer_wait">,  
+    Arguments<(ins I64:$time)> {
+  let summary = "globaltimer busy loop";
----------------
grypp wrote:

I guess @matthias-springer wanted to use globaltime specifically. But yes, we can also implement its variant with nanosleep. 

https://github.com/llvm/llvm-project/pull/129065


More information about the Mlir-commits mailing list