Skip to content

[ROCm][CI] Guard CudaPlatform/RocmPlatform imports to fix test collection on cross-platform builds#37617

Merged
DarkLight1337 merged 5 commits intovllm-project:mainfrom
ROCm:akaratza_fix_kernels
Mar 21, 2026
Merged

[ROCm][CI] Guard CudaPlatform/RocmPlatform imports to fix test collection on cross-platform builds#37617
DarkLight1337 merged 5 commits intovllm-project:mainfrom
ROCm:akaratza_fix_kernels

Conversation

@AndreasKaratzas
Copy link
Collaborator

Follow-up for:

Fixes unconditionally imports CudaPlatform and RocmPlatform at module level. Addresses failure in mi355_1: Kernels (B200-MI355)

Motivation: https://buildkite.com/vllm/amd-ci/builds/6701/steps/canvas?sid=019d07a7-1ac3-4614-993f-cc80ab9b2c57&tab=output

cc @kenroche

…tion on cross-platform builds

Signed-off-by: Andreas Karatzas <akaratza@amd.com>
@mergify mergify bot added nvidia rocm Related to AMD ROCm labels Mar 20, 2026
@github-project-automation github-project-automation bot moved this to Todo in AMD Mar 20, 2026
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request effectively guards against CudaPlatform and RocmPlatform import errors on cross-platform builds by using try-except blocks and conditionally skipping tests when these platforms are not available. This significantly improves the robustness of the test suite in diverse build environments. The changes are well-implemented and align with the stated motivation.

@AndreasKaratzas AndreasKaratzas added the ready ONLY add when PR is ready to merge/full CI is needed label Mar 20, 2026
@AndreasKaratzas
Copy link
Collaborator Author

AndreasKaratzas commented Mar 20, 2026

Testing MI355 to see if issue is resolved (added ready label).

@AndreasKaratzas AndreasKaratzas marked this pull request as ready for review March 20, 2026 22:53
@AndreasKaratzas
Copy link
Collaborator Author

@github-project-automation github-project-automation bot moved this to Ready in NVIDIA Mar 21, 2026
@DarkLight1337 DarkLight1337 merged commit 3ffa520 into vllm-project:main Mar 21, 2026
15 checks passed
@github-project-automation github-project-automation bot moved this from Ready to Done in NVIDIA Mar 21, 2026
@github-project-automation github-project-automation bot moved this from Todo to Done in AMD Mar 21, 2026
@AndreasKaratzas AndreasKaratzas deleted the akaratza_fix_kernels branch March 21, 2026 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

nvidia ready ONLY add when PR is ready to merge/full CI is needed rocm Related to AMD ROCm

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants