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

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 2 07:57: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));
----------------
jhuber6 wrote:

This assumes that the kernel name and binary name are the same, guess it's fine for now but probably something we want much more complicated tests for.

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


More information about the llvm-commits mailing list