Skip to content

Conversation

jhuber6
Copy link
Contributor

@jhuber6 jhuber6 commented Sep 3, 2025

Summary:
Add a dependnecy on the unit tests on the main check-offload test suite.
This matches what the other projects do, pass llvm-lit to the
directory to only run the lit tests, use the check-offload-unit for
only the unit tests.

Summary:
Add a dependnecy on the unit tests on the main check-offload test suite.
This matches what the other projects do, pass `llvm-lit` to the
directory to only run the lit tests, use the `check-offload-unit` for
only the unit tests.
@llvmbot
Copy link
Member

llvmbot commented Sep 3, 2025

@llvm/pr-subscribers-offload

Author: Joseph Huber (jhuber6)

Changes

Summary:
Add a dependnecy on the unit tests on the main check-offload test suite.
This matches what the other projects do, pass llvm-lit to the
directory to only run the lit tests, use the check-offload-unit for
only the unit tests.


Full diff: https://github.com/llvm/llvm-project/pull/156675.diff

1 Files Affected:

  • (modified) offload/test/CMakeLists.txt (+1-1)
diff --git a/offload/test/CMakeLists.txt b/offload/test/CMakeLists.txt
index 711621de9075d..c317394ada66f 100644
--- a/offload/test/CMakeLists.txt
+++ b/offload/test/CMakeLists.txt
@@ -61,7 +61,7 @@ add_offload_testsuite(check-offload
   "Running libomptarget tests"
   ${LIBOMPTARGET_LIT_TESTSUITES}
   EXCLUDE_FROM_CHECK_ALL
-  DEPENDS llvm-offload-device-info omptarget ${OMP_DEPEND} ${LIBOMPTARGET_TESTED_PLUGINS}
+  DEPENDS llvm-offload-device-info omptarget ${OMP_DEPEND} ${LIBOMPTARGET_TESTED_PLUGINS} check-offload-unit
   ARGS ${LIBOMPTARGET_LIT_ARG_LIST})
 
 # Add liboffload unit tests - the test binary will run on all available devices

Copy link
Contributor

@jplehr jplehr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm
I think this is the right thing to do.

@jhuber6 jhuber6 merged commit 99f61f3 into llvm:main Sep 3, 2025
11 checks passed
@jplehr
Copy link
Contributor

jplehr commented Sep 4, 2025

It appears that this breaks the ability to do LIT_FILTER=offload/some-test ninja check-offload with a test coming from the lit tests.

Leaving this here as an observation and something we likely want to fix at some point.

@jhuber6
Copy link
Contributor Author

jhuber6 commented Sep 4, 2025

It appears that this breaks the ability to do LIT_FILTER=offload/some-test ninja check-offload with a test coming from the lit tests.

Leaving this here as an observation and something we likely want to fix at some point.

Hm, maybe the other targets do something slightly different to register their unit tests. Right now we just do add_test.

@mgorny
Copy link
Member

mgorny commented Sep 5, 2025

This change broke standalone builds. I think it is because check-offload-unit was broken in the first place, but now we can't run tests at all:

[57/59] cd /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload_build/test && /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/temp/python3.13/bin/python3 /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload_build/llvm-lit -vv -j 96 /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload_build/test/unit
/usr/bin/python3.13: can't open file '/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload_build/llvm-lit': [Errno 2] No such file or directory
FAILED: [code=2] test/CMakeFiles/check-offload-unit /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload_build/test/CMakeFiles/check-offload-unit 
cd /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload_build/test && /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/temp/python3.13/bin/python3 /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload_build/llvm-lit -vv -j 96 /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload_build/test/unit
ninja: build stopped: subcommand failed.

Other tests are using add_offload_testsuite() that seems to configure lit correctly. This one seems to assume that llvm-lit is configured somehow, but offload doesn't do anything like that.

@jhuber6
Copy link
Contributor Author

jhuber6 commented Sep 5, 2025

This change broke standalone builds. I think it is because check-offload-unit was broken in the first place, but now we can't run tests at all:

[57/59] cd /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload_build/test && /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/temp/python3.13/bin/python3 /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload_build/llvm-lit -vv -j 96 /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload_build/test/unit
/usr/bin/python3.13: can't open file '/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload_build/llvm-lit': [Errno 2] No such file or directory
FAILED: [code=2] test/CMakeFiles/check-offload-unit /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload_build/test/CMakeFiles/check-offload-unit 
cd /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload_build/test && /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/temp/python3.13/bin/python3 /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload_build/llvm-lit -vv -j 96 /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload_build/test/unit
ninja: build stopped: subcommand failed.

Other tests are using add_offload_testsuite() that seems to configure lit correctly. This one seems to assume that llvm-lit is configured somehow, but offload doesn't do anything like that.

Yeah, I think the offload unittests are using add_test from core CMake which probably isn't compatible. We can revert this for now. @callumfare are you able to look into this?

@jhuber6 jhuber6 deleted the offload_test branch September 5, 2025 19:31
@mgorny
Copy link
Member

mgorny commented Sep 6, 2025

With #157253 I was able to use a runtimes build for offload, but then I'm seeing a fair bunch of unittests fail with errors such as:

FAIL: Offload-Unit :: OffloadAPI/./device.unittests/2/4 (4 of 44)
******************** TEST 'Offload-Unit :: OffloadAPI/./device.unittests/2/4' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/unittests/OffloadAPI/./device.unittests-Offload-Unit-209-2-4.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=4 GTEST_SHARD_INDEX=2 /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/unittests/OffloadAPI/./device.unittests
--

Script:
--
/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/unittests/OffloadAPI/./device.unittests --gtest_filter=GoogleTestVerification.UninstantiatedParameterizedTestSuite<olGetDeviceInfoTest>
--
/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/unittests/OffloadAPI/device/olGetDeviceInfo.cpp:14: Failure
Parameterized test suite olGetDeviceInfoTest is defined via TEST_P, but never instantiated. None of the test cases will run. Either no INSTANTIATE_TEST_SUITE_P is provided or the only ones provided expand to nothing.

Ideally, TEST_P definitions should only ever be included as part of binaries that intend to use them. (As opposed to, for example, being placed in a library that may be linked in to get other utilities.)

To suppress this error for this test suite, insert the following line (in a non-header) in the namespace it is defined in:

GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(olGetDeviceInfoTest);


/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/unittests/OffloadAPI/device/olGetDeviceInfo.cpp:14
Parameterized test suite olGetDeviceInfoTest is defined via TEST_P, but never instantiated. None of the test cases will run. Either no INSTANTIATE_TEST_SUITE_P is provided or the only ones provided expand to nothing.

Ideally, TEST_P definitions should only ever be included as part of binaries that intend to use them. (As opposed to, for example, being placed in a library that may be linked in to get other utilities.)

To suppress this error for this test suite, insert the following line (in a non-header) in the namespace it is defined in:

GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(olGetDeviceInfoTest);



********************

and so on. The complete list is:

Failed Tests (39):
  Offload-Unit :: OffloadAPI/./device.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetDeviceInfoSizeTest>
  Offload-Unit :: OffloadAPI/./device.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetDeviceInfoTest>
  Offload-Unit :: OffloadAPI/./event.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olCreateEventTest>
  Offload-Unit :: OffloadAPI/./event.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olDestroyEventTest>
  Offload-Unit :: OffloadAPI/./event.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetEventInfoSizeTest>
  Offload-Unit :: OffloadAPI/./event.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetEventInfoTest>
  Offload-Unit :: OffloadAPI/./event.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olSyncEventTest>
  Offload-Unit :: OffloadAPI/./kernel.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olCalculateOptimalOccupancy
Test>
  Offload-Unit :: OffloadAPI/./kernel.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olLaunchKernelFooTest>
  Offload-Unit :: OffloadAPI/./kernel.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olLaunchKernelGlobalCtorTest>
  Offload-Unit :: OffloadAPI/./kernel.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olLaunchKernelGlobalDtorTest>
  Offload-Unit :: OffloadAPI/./kernel.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olLaunchKernelGlobalTest>
  Offload-Unit :: OffloadAPI/./kernel.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olLaunchKernelLocalMemReductionTest>
  Offload-Unit :: OffloadAPI/./kernel.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olLaunchKernelLocalMemStaticTest>
  Offload-Unit :: OffloadAPI/./kernel.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olLaunchKernelLocalMemTest>
  Offload-Unit :: OffloadAPI/./kernel.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olLaunchKernelNoArgsTest>
  Offload-Unit :: OffloadAPI/./memory.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olMemAllocTest>
  Offload-Unit :: OffloadAPI/./memory.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olMemFillTest>
  Offload-Unit :: OffloadAPI/./memory.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olMemFreeTest>
  Offload-Unit :: OffloadAPI/./memory.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olMemcpyGlobalTest>
  Offload-Unit :: OffloadAPI/./memory.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olMemcpyTest>
  Offload-Unit :: OffloadAPI/./platform.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetPlatformInfoSizeTest>
  Offload-Unit :: OffloadAPI/./platform.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetPlatformInfoTest>
  Offload-Unit :: OffloadAPI/./program.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olCreateProgramTest>
  Offload-Unit :: OffloadAPI/./program.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olDestroyProgramTest>
  Offload-Unit :: OffloadAPI/./queue.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olCreateQueueTest>
  Offload-Unit :: OffloadAPI/./queue.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olDestroyQueueTest>
  Offload-Unit :: OffloadAPI/./queue.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetQueueInfoSizeTest>
  Offload-Unit :: OffloadAPI/./queue.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetQueueInfoTest>
  Offload-Unit :: OffloadAPI/./queue.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olLaunchHostFunctionKernelTest>
  Offload-Unit :: OffloadAPI/./queue.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olLaunchHostFunctionTest>
  Offload-Unit :: OffloadAPI/./queue.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olSyncQueueTest>
  Offload-Unit :: OffloadAPI/./queue.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olWaitEventsTest>
  Offload-Unit :: OffloadAPI/./symbol.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetSymbolGlobalTest>
  Offload-Unit :: OffloadAPI/./symbol.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetSymbolInfoGlobalTest>
  Offload-Unit :: OffloadAPI/./symbol.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetSymbolInfoKernelTest>
  Offload-Unit :: OffloadAPI/./symbol.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetSymbolInfoSizeGlobalTest>
  Offload-Unit :: OffloadAPI/./symbol.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetSymbolInfoSizeKernelTest>
  Offload-Unit :: OffloadAPI/./symbol.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetSymbolKernelTest>

…leaving 5 tests actually passing.

@jhuber6
Copy link
Contributor Author

jhuber6 commented Sep 6, 2025

With #157253 I was able to use a runtimes build for offload, but then I'm seeing a fair bunch of unittests fail with errors such as:

FAIL: Offload-Unit :: OffloadAPI/./device.unittests/2/4 (4 of 44)
******************** TEST 'Offload-Unit :: OffloadAPI/./device.unittests/2/4' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/unittests/OffloadAPI/./device.unittests-Offload-Unit-209-2-4.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=4 GTEST_SHARD_INDEX=2 /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/unittests/OffloadAPI/./device.unittests
--

Script:
--
/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/unittests/OffloadAPI/./device.unittests --gtest_filter=GoogleTestVerification.UninstantiatedParameterizedTestSuite<olGetDeviceInfoTest>
--
/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/unittests/OffloadAPI/device/olGetDeviceInfo.cpp:14: Failure
Parameterized test suite olGetDeviceInfoTest is defined via TEST_P, but never instantiated. None of the test cases will run. Either no INSTANTIATE_TEST_SUITE_P is provided or the only ones provided expand to nothing.

Ideally, TEST_P definitions should only ever be included as part of binaries that intend to use them. (As opposed to, for example, being placed in a library that may be linked in to get other utilities.)

To suppress this error for this test suite, insert the following line (in a non-header) in the namespace it is defined in:

GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(olGetDeviceInfoTest);


/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/unittests/OffloadAPI/device/olGetDeviceInfo.cpp:14
Parameterized test suite olGetDeviceInfoTest is defined via TEST_P, but never instantiated. None of the test cases will run. Either no INSTANTIATE_TEST_SUITE_P is provided or the only ones provided expand to nothing.

Ideally, TEST_P definitions should only ever be included as part of binaries that intend to use them. (As opposed to, for example, being placed in a library that may be linked in to get other utilities.)

To suppress this error for this test suite, insert the following line (in a non-header) in the namespace it is defined in:

GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(olGetDeviceInfoTest);



********************

and so on. The complete list is:

Failed Tests (39):
  Offload-Unit :: OffloadAPI/./device.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetDeviceInfoSizeTest>
  Offload-Unit :: OffloadAPI/./device.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetDeviceInfoTest>
  Offload-Unit :: OffloadAPI/./event.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olCreateEventTest>
  Offload-Unit :: OffloadAPI/./event.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olDestroyEventTest>
  Offload-Unit :: OffloadAPI/./event.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetEventInfoSizeTest>
  Offload-Unit :: OffloadAPI/./event.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetEventInfoTest>
  Offload-Unit :: OffloadAPI/./event.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olSyncEventTest>
  Offload-Unit :: OffloadAPI/./kernel.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olCalculateOptimalOccupancy
Test>
  Offload-Unit :: OffloadAPI/./kernel.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olLaunchKernelFooTest>
  Offload-Unit :: OffloadAPI/./kernel.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olLaunchKernelGlobalCtorTest>
  Offload-Unit :: OffloadAPI/./kernel.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olLaunchKernelGlobalDtorTest>
  Offload-Unit :: OffloadAPI/./kernel.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olLaunchKernelGlobalTest>
  Offload-Unit :: OffloadAPI/./kernel.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olLaunchKernelLocalMemReductionTest>
  Offload-Unit :: OffloadAPI/./kernel.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olLaunchKernelLocalMemStaticTest>
  Offload-Unit :: OffloadAPI/./kernel.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olLaunchKernelLocalMemTest>
  Offload-Unit :: OffloadAPI/./kernel.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olLaunchKernelNoArgsTest>
  Offload-Unit :: OffloadAPI/./memory.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olMemAllocTest>
  Offload-Unit :: OffloadAPI/./memory.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olMemFillTest>
  Offload-Unit :: OffloadAPI/./memory.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olMemFreeTest>
  Offload-Unit :: OffloadAPI/./memory.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olMemcpyGlobalTest>
  Offload-Unit :: OffloadAPI/./memory.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olMemcpyTest>
  Offload-Unit :: OffloadAPI/./platform.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetPlatformInfoSizeTest>
  Offload-Unit :: OffloadAPI/./platform.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetPlatformInfoTest>
  Offload-Unit :: OffloadAPI/./program.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olCreateProgramTest>
  Offload-Unit :: OffloadAPI/./program.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olDestroyProgramTest>
  Offload-Unit :: OffloadAPI/./queue.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olCreateQueueTest>
  Offload-Unit :: OffloadAPI/./queue.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olDestroyQueueTest>
  Offload-Unit :: OffloadAPI/./queue.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetQueueInfoSizeTest>
  Offload-Unit :: OffloadAPI/./queue.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetQueueInfoTest>
  Offload-Unit :: OffloadAPI/./queue.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olLaunchHostFunctionKernelTest>
  Offload-Unit :: OffloadAPI/./queue.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olLaunchHostFunctionTest>
  Offload-Unit :: OffloadAPI/./queue.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olSyncQueueTest>
  Offload-Unit :: OffloadAPI/./queue.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olWaitEventsTest>
  Offload-Unit :: OffloadAPI/./symbol.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetSymbolGlobalTest>
  Offload-Unit :: OffloadAPI/./symbol.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetSymbolInfoGlobalTest>
  Offload-Unit :: OffloadAPI/./symbol.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetSymbolInfoKernelTest>
  Offload-Unit :: OffloadAPI/./symbol.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetSymbolInfoSizeGlobalTest>
  Offload-Unit :: OffloadAPI/./symbol.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetSymbolInfoSizeKernelTest>
  Offload-Unit :: OffloadAPI/./symbol.unittests/GoogleTestVerification/UninstantiatedParameterizedTestSuite<olGetSymbolKernelTest>

…leaving 5 tests actually passing.

How are you configuring it? I think there might be something that goes wrong if you don't have all the plugin enabled and the tests don't handle it properly.

@mgorny
Copy link
Member

mgorny commented Sep 6, 2025

cmake -C /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/gentoo_common_config.cmake \
-G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLLVM_ROOT=/usr/lib/llvm/22 \
-DLLVM_ENABLE_RUNTIMES=offload \
-DOPENMP_STANDALONE_BUILD=ON \
-OFFLOAD_LIBDIR_SUFFIX=64 \
-DOFFLOAD_INCLUDE_TESTS=yes \
-DLIBOMPTARGET_PLUGINS_TO_BUILD=host;cuda \
-DLIBOMPTARGET_OMPT_SUPPORT=no \
-DLIBOMPTARGET_BUILD_DEVICERTL_BCLIB=TRUE \
-DBUILD_SHARED_LIBS=OFF \
-DFFI_INCLUDE_DIR=/usr/lib64/libffi/include \
-DFFI_LIBRARY_DIR= \
-DFFI_STATIC_LIBRARIES=NO \
-DLIBOMPTARGET_AMDGPU_ARCH=LIBOMPTARGET_AMDGPU_ARCH-NOTFOUND \
-DLIBOMPTARGET_NVPTX_ARCH=LIBOMPTARGET_NVPTX_ARCH-NOTFOUND \
-DOPENMP_LLVM_LIT_EXECUTABLE=/usr/bin/lit \
-DOPENMP_LIT_ARGS=-vv;-j;96 \
-DOPENMP_TEST_C_COMPILER=/usr/lib/ccache/bin/aarch64-unknown-linux-gnu-clang \
-DOPENMP_TEST_CXX_COMPILER=/usr/lib/ccache/bin/aarch64-unknown-linux-gnu-clang++ \
-DOPENMP_TEST_Fortran_COMPILER= \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/gentoo_toolchain.cmake \
/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes

(this is from build log, so don't worry about missing quotes)

@jhuber6
Copy link
Contributor Author

jhuber6 commented Sep 6, 2025

I'm going to assume that this causes some ifdef to be false which never registers the test or something.

-DLIBOMPTARGET_PLUGINS_TO_BUILD=host;cuda

@mgorny
Copy link
Member

mgorny commented Sep 6, 2025

Do you want me to file a separate bug for that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants