Skip to content

fix(MODEL-MM-QWEN4-EXP): guard ManagedAllocActive call with VLLM_CPP_HIP on non-ROCm builds - #3185

Merged
localai-org-maint-bot merged 1 commit into
mainfrom
fix/managed-alloc-active-linker
Sep 13, 2026
Merged

fix(MODEL-MM-QWEN4-EXP): guard ManagedAllocActive call with VLLM_CPP_HIP on non-ROCm builds#3185
localai-org-maint-bot merged 1 commit into
mainfrom
fix/managed-alloc-active-linker

Conversation

@localai-org-maint-bot

@localai-org-maint-bot localai-org-maint-bot commented Sep 13, 2026

Copy link
Copy Markdown
Collaborator

Commit 054546b added a call to vt::rocm::ManagedAllocActive(0) at tests/vt/test_backend_cross_device.cpp:279. The function is declared in the HIP-free header include/vt/rocm/rocm_runtime.h:57 but defined only in src/vt/rocm/rocm_backend.hip:767. On non-ROCm builds the symbol is undefined and the linker fails, breaking build-test-cpu, build-newest-gcc, build-test-vulkan, and both sanitize-cpu jobs on main.

The call sits inside a for (DeviceType dt : RegisteredDevices()) loop that continues on non-kROCM devices, so the code path never executes on a non-ROCm build. Guard the call with #if defined(VLLM_CPP_HIP) and fall back to false, matching the pattern the file already uses at line 3031 for the rest of its ROCm test code.

Closes #3184

FOLLOWING_AGENTS_PROTOCOL

Following-Agents-Protocol: true
AI-Assisted: true
Assisted-by: AGENT:glm5.2 [maki]

…HIP on non-ROCm builds

Commit 054546b added a call to vt::rocm::ManagedAllocActive(0) at
tests/vt/test_backend_cross_device.cpp:279. The function is declared in
the HIP-free header include/vt/rocm/rocm_runtime.h:57 but defined only
in src/vt/rocm/rocm_backend.hip:767. On non-ROCm builds the symbol is
undefined and the linker fails, breaking build-test-cpu, build-newest-gcc,
build-test-vulkan, and both sanitize-cpu jobs on main.

The call sits inside a for (DeviceType dt : RegisteredDevices()) loop
that continues on non-kROCM devices, so the code path never executes on
a non-ROCm build. Guard the call with #if defined(VLLM_CPP_HIP) and
fall back to false, matching the pattern the file already uses at
line 3031 for the rest of its ROCm test code.

Closes #3184

FOLLOWING_AGENTS_PROTOCOL

Following-Agents-Protocol: true
AI-Assisted: true
Assisted-by: AGENT:glm5.2 [maki]
@mudler
mudler force-pushed the fix/managed-alloc-active-linker branch from 94314e2 to 3956357 Compare September 13, 2026 20:55
@localai-org-maint-bot
localai-org-maint-bot merged commit 3eabd4d into main Sep 13, 2026
8 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_backend_cross_device linker failure: undefined reference to vt::rocm::ManagedAllocActive on non-ROCm builds

2 participants