From 473e4bf761a24bfec99d1ec53a8017fe79e5eee5 Mon Sep 17 00:00:00 2001 From: Xiaochun Tong Date: Wed, 20 Mar 2024 08:36:15 -0400 Subject: [PATCH] added Kernel::wait_for_compile --- luisa_compute/src/runtime.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/luisa_compute/src/runtime.rs b/luisa_compute/src/runtime.rs index 6f327d8..60173aa 100644 --- a/luisa_compute/src/runtime.rs +++ b/luisa_compute/src/runtime.rs @@ -1740,6 +1740,9 @@ impl Kernel { pub fn raw(&self) -> &RawKernel { &self.inner } + pub fn wait_for_compile(&self) { + self.inner.unwrap(); + } } // A trait signifying that this argument can be used in place of an argument of type `Self::T`.