[llvm] [Offload] Allow setting null arguments in olLaunchKernel (PR #141958)

Ross Brunton via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 2 08:14:06 PDT 2025


================
@@ -10,14 +10,14 @@
 #include <OffloadAPI.h>
 #include <gtest/gtest.h>
 
-struct olLaunchKernelTest : OffloadQueueTest {
-  void SetUp() override {
+struct LaunchKernelTestBase : OffloadQueueTest {
+  void SetUpKernel(const char *kernel) {
     RETURN_ON_FATAL_FAILURE(OffloadQueueTest::SetUp());
-    ASSERT_TRUE(TestEnvironment::loadDeviceBinary("foo", Device, DeviceBin));
+    ASSERT_TRUE(TestEnvironment::loadDeviceBinary(kernel, Device, DeviceBin));
----------------
RossBrunton wrote:

I think any test for which that doesn't hold will probably want to inherit directly from OffloadQueueTest and do its own binary handling logic.

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


More information about the llvm-commits mailing list