fix(metal): rename test-local fp8_nblk to avoid quant.h collision - #945
fix(metal): rename test-local fp8_nblk to avoid quant.h collision#945gouravkargwal wants to merge 1 commit into
Conversation
|
Proof — reproduced and verified on Apple M3, 16 GB Environment:
Before the fix — exact failure of After the fix — full run below, exits 0. Note the FP8 grouped cases (the ones exercising the renamed helper) all pass: |
|
clang++ -x objective-c++ -std=gnu++17 -fobjc-arc -O3 tests/test_backend_metal.mm backend_metal.mm -framework Metal -framework Foundation -o backend_metal_test |
|
Closing, with appreciation rather than rejection: this exact fix — same rename, same Your #947 is the more valuable half anyway — the reason this bug ever shipped is that no CI ran |
Fixes #940
The test file defined its own
static int fp8_nblkwhilequant.hnow providesstatic inline int64_t fp8_nblk. Same name and parameter list with different return types breaks compilation of the Metal test (make metal-test): "functions that differ only in their return type cannot be overloaded".Renamed the test-local helper to
ref_fp8_nblk. Header API and production behavior are untouched.Reproduced and verified on Apple M3, 16 GB:
make metal-testpasses in full.