Archived
merge 1.12.0: gemma4 E2B/E4B and Nemotron Bolt E4B arrive; the ref2va audio, rows and ABI work carried across
conv1d keeps both stride forms: upstream's causal codec downsample with cu_div (Fish Audio) and the port's explicit-pad non-causal one (the H3 audio encoder's), in libref, libavx and libr4d alike; the ABI takes upstream's 27 on top of the port's RadVideoGenBatch growth.
This commit is contained in:
commit
7c3b5ab7d5
285 files changed
+30500
-2898
No files matched your search
+45
-4
@@ -64,6 +64,8 @@ set(RAD_TESTS_WITH_VAE_GEOM vae_geom_test)
|
||||
# test binaries can run from anywhere.
|
||||
set(RAD_CHAT_FIXTURES ${CMAKE_CURRENT_SOURCE_DIR}/data/chat)
|
||||
set(RAD_MEDIA_FIXTURES ${CMAKE_CURRENT_SOURCE_DIR}/data/media)
|
||||
# Checked-in golden blobs (tests/data/golden), read at test time (tests/uocr_resample_golden.h).
|
||||
set(RAD_GOLDEN_FIXTURES ${CMAKE_CURRENT_SOURCE_DIR}/data/golden)
|
||||
|
||||
# libstdc++ before rad_core on every test's link line. lld extracts archive members to resolve a
|
||||
# shared library's imports too: ROCm 10.1's libamdhip64 imports std::string::reserve, which g++-14
|
||||
@@ -124,6 +126,7 @@ set(RAD_TEST_ENV ${RAD_TEST_CARD_ENV} "ROCR_VISIBLE_DEVICES=99")
|
||||
# cost comes down, so the tripwire stays tight.
|
||||
set(RAD_TEST_CPU_BUDGET_quant_ggml_test 25) # llama.cpp's iq1_s and iq2_* grid searches, ~13 s
|
||||
set(RAD_TEST_CPU_BUDGET_tokenizer_test 20) # the reference encoder over every corpus: ~3 s built by GCC 16, ~10.5 s by GCC 14 (the image's Ubuntu)
|
||||
set(RAD_TEST_CPU_BUDGET_arch_test 15) # every plugin's graph declared; ~10.8 s with the batched-tower case
|
||||
|
||||
# Binaries whose OpenMP team is busy for most of their run, so a parallel ctest counts them as a
|
||||
# team's worth of slots rather than one.
|
||||
@@ -215,7 +218,8 @@ foreach(t ${RAD_TESTS})
|
||||
target_link_libraries(${n} PRIVATE rad_legacy_toolparse)
|
||||
endif()
|
||||
target_compile_definitions(${n} PRIVATE RAD_CHAT_FIXTURES="${RAD_CHAT_FIXTURES}"
|
||||
RAD_MEDIA_FIXTURES="${RAD_MEDIA_FIXTURES}")
|
||||
RAD_MEDIA_FIXTURES="${RAD_MEDIA_FIXTURES}"
|
||||
RAD_GOLDEN_FIXTURES="${RAD_GOLDEN_FIXTURES}")
|
||||
# Normally inherited from rad_core; tests that do not link it still need the ABI headers.
|
||||
target_include_directories(${n} PRIVATE ${CMAKE_SOURCE_DIR}/core ${CMAKE_SOURCE_DIR}/abi
|
||||
${CMAKE_BINARY_DIR}/rad_include)
|
||||
@@ -263,6 +267,22 @@ if(RAD_HIP_FOUND)
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
# spechub_wiring_test dlopens the built spechub plugin and checks how its rows are classified: the
|
||||
# device rows must be production kernels and the host oracle rows must stay reference. It needs the
|
||||
# library path and the same RAD_SPECHUB_WITH_DEVICE answer the plugin was built with.
|
||||
if(TARGET spechub)
|
||||
target_link_libraries(spechub_wiring_test PRIVATE ${CMAKE_DL_LIBS})
|
||||
target_compile_definitions(spechub_wiring_test PRIVATE
|
||||
RAD_SPECHUB_LIB="${RAD_PLUGIN_OUT}/kernels/spechub.so")
|
||||
if(RAD_HIP_FOUND)
|
||||
target_compile_definitions(spechub_wiring_test PRIVATE RAD_SPECHUB_WITH_DEVICE=1)
|
||||
endif()
|
||||
add_dependencies(spechub_wiring_test spechub)
|
||||
# sample_test's coupling case declares a Sampler with draft_coupling set and needs the verify
|
||||
# op the spechub plugin carries (its host row); it skips when the library is absent.
|
||||
add_dependencies(sample_test spechub)
|
||||
endif()
|
||||
|
||||
# ================================================================== whole models on the CPU
|
||||
#
|
||||
# engine_e2e_test runs the radiance binary on tiny synthetic checkpoints (tests/tiny_model.h) on
|
||||
@@ -327,14 +347,14 @@ endif()
|
||||
#
|
||||
# r4d_selftest is the only check of libr4d's fusion claims: rows declaring a fused kernel
|
||||
# byte-identical to the ops it replaces, verified by memcmp against the unfused kernels on the same
|
||||
# inputs. It needs a card and forks a child per row (about six minutes), so it is labelled `slow`;
|
||||
# the default `ctest` still runs it.
|
||||
# inputs. It needs a card and forks a child per row (about fifteen minutes on an R9700), so it is
|
||||
# labelled `slow`; the default `ctest` still runs it.
|
||||
if(RAD_HIP_FOUND AND TARGET r4d_selftest)
|
||||
add_test(NAME r4d_selftest
|
||||
COMMAND r4d_selftest ${RAD_PLUGIN_OUT}/kernels/libr4d.so)
|
||||
set_tests_properties(r4d_selftest PROPERTIES
|
||||
LABELS "slow;gpu"
|
||||
TIMEOUT 900
|
||||
TIMEOUT 2400
|
||||
ENVIRONMENT "RADIANCE_HOME=${CMAKE_BINARY_DIR}/radiance_home")
|
||||
endif()
|
||||
|
||||
@@ -353,6 +373,24 @@ if(RAD_HIP_FOUND AND TARGET device_test)
|
||||
ENVIRONMENT "${RAD_TEST_CARD_ENV};HSA_USE_SVM=0")
|
||||
endif()
|
||||
|
||||
# ================================================================== kernel arguments in host memory
|
||||
#
|
||||
# A card whose PCI BAR is smaller than its VRAM gets its kernel argument rings and recorded-pass
|
||||
# argument blocks in pinned host memory (core/device/aql.cpp, init_devices). --host-kargs places
|
||||
# them there on any card, so device_test and runtime_test run that path a second time.
|
||||
if(RAD_HIP_FOUND)
|
||||
foreach(n device_test runtime_test)
|
||||
if(TARGET ${n})
|
||||
add_test(NAME ${n}_hostkargs COMMAND ${n} --host-kargs -perf_)
|
||||
set_tests_properties(${n}_hostkargs PROPERTIES
|
||||
LABELS gpu
|
||||
SKIP_RETURN_CODE 77
|
||||
TIMEOUT ${RAD_TEST_TIMEOUT}
|
||||
ENVIRONMENT "${RAD_TEST_CARD_ENV}")
|
||||
endif()
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
# ================================================================== the host kernels
|
||||
#
|
||||
# rad-avx-check compares libavx with libref op by op at every ISA level the machine supports, and
|
||||
@@ -521,6 +559,9 @@ endif()
|
||||
# parameters). Cheap, so in the fast tier. libr4d.so is added when built; the script reports
|
||||
# " SKIP " rather than passing when a plugin will not dump.
|
||||
set(RAD_OPSDOC_PLUGINS ${RAD_PLUGIN_OUT}/kernels/libref.so)
|
||||
if(TARGET spechub)
|
||||
list(APPEND RAD_OPSDOC_PLUGINS ${RAD_PLUGIN_OUT}/kernels/spechub.so)
|
||||
endif()
|
||||
if(RAD_HIP_FOUND AND TARGET libr4d)
|
||||
list(APPEND RAD_OPSDOC_PLUGINS ${RAD_PLUGIN_OUT}/kernels/libr4d.so)
|
||||
endif()
|
||||
|
||||
Reference in new issue
Block a user