From 87ae96222d15d04924b9b3a91aa0784908ca0e09 Mon Sep 17 00:00:00 2001 From: Leyukaka <45659323+Leyukaka@users.noreply.github.com> Date: Fri, 27 Nov 2026 22:00:43 +0100 Subject: [PATCH] tests: define SENTINEL in native_f16_alu_check native_cvt_f16_i16_check.py (#3159) reads F.SENTINEL from native_f16_alu_check, which defines no such name, so native_cvt_f16_i16_hardware fails with an AttributeError after all conversions have matched. Define SENTINEL = 0x69696969, the fill native_store_replay uses for untouched words, and use it for the module's own expected guard words. AI-assisted. --- tests/native_f16_alu_check.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/native_f16_alu_check.py b/tests/native_f16_alu_check.py index 92a6865bd9..49d6c3a080 100644 --- a/tests/native_f16_alu_check.py +++ b/tests/native_f16_alu_check.py @@ -28,6 +28,7 @@ GROUPS = 2 WORDS = 2064 +SENTINEL = 0x69696969 # native_store_replay fills untouched words with 0x69 BASE = 8 STRIDE = 128 SHIFT = 9 @@ -565,7 +566,7 @@ def run_gpu(gpu, sdk): sys.exit(77) run.check_returncode() offsets = group_offsets(len(want)) - expected = [0x69696969] * WORDS + expected = [SENTINEL] * WORDS results = {} for group in range(GROUPS): for slot, value in zip(offsets[group], want):