tests: the oot test builds libr4d at the tree's RAD_HIP_VOPD_REPEATABLE

oot_plugins.sh gave libr4d's out-of-tree configure the tree's HIP compiler and targets but not
RAD_HIP_VOPD_REPEATABLE. In a tree configured as the build image configures it (ON, for the
patched LLVM 24), the out-of-tree libr4d was compiled with VOPD pairing off and step 5 found
different device code. The option is now the script's sixth argument (default OFF), forwarded to
the device libraries' configure. In radiance-build, ctest -L oot failed at step 5 and now passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
eddie168168andClaude Opus 5.5 authored and StillDeadcode committed 2026-10-19 10:37:07 +02:00
1 parent df030c7483
commit 35b357825e
2 files changed
+12 -10

No files matched your search

+3 -3
View File
@@ -506,13 +506,13 @@ endif()
# Installs the build into a prefix, then configures, builds and installs every plugin directory
# standalone against it with find_package(radiance). The result must match the tree's plugins,
# vocabulary and registration, and serve rad-kbench's fixture through the installed tools
# (tests/oot_plugins.sh). libr4d is included when the tree built it, with the same HIP compiler and
# targets. Labelled `oot`: it rebuilds every plugin and takes minutes.
# (tests/oot_plugins.sh). libr4d is included when the tree built it, with the same HIP compiler,
# targets and RAD_HIP_VOPD_REPEATABLE. Labelled `oot`: it rebuilds every plugin and takes minutes.
set(RAD_OOT_HIP "")
if(RAD_HIP_FOUND AND TARGET libr4d)
get_target_property(RAD_OOT_R4D_ARCH libr4d HIP_ARCHITECTURES)
string(REPLACE ";" "\\;" RAD_OOT_R4D_ARCH "${RAD_OOT_R4D_ARCH}")
set(RAD_OOT_HIP ${CMAKE_HIP_COMPILER} "${RAD_OOT_R4D_ARCH}")
set(RAD_OOT_HIP ${CMAKE_HIP_COMPILER} "${RAD_OOT_R4D_ARCH}" ${RAD_HIP_VOPD_REPEATABLE})
endif()
add_test(NAME oot_plugins
COMMAND sh ${CMAKE_CURRENT_SOURCE_DIR}/oot_plugins.sh