[llvm] [Offload] Make olLaunchKernel test thread safe (PR #149497)

Ross Brunton via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 18 04:31:52 PDT 2025


================
@@ -104,6 +104,29 @@ TEST_P(olLaunchKernelFooTest, Success) {
   ASSERT_SUCCESS(olMemFree(Mem));
 }
 
+TEST_P(olLaunchKernelFooTest, SuccessThreaded) {
----------------
RossBrunton wrote:

I'd love to be able to add an `OFFLOAD_TEST_THREADED_P` macro so that you'd get threaded and non-threaded tests "for free" without copy-pasting the test body. But I can't think of a good way of actually implementing that with gtest, anyone have any ideas?

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


More information about the llvm-commits mailing list