Skip to content

bugfix: unify device_index logging conversion with helper overloads#1263

Open
kuma-loong wants to merge 2 commits intojd-opensource:mainfrom
kuma-loong:fix/log-device_index-null
Open

bugfix: unify device_index logging conversion with helper overloads#1263
kuma-loong wants to merge 2 commits intojd-opensource:mainfrom
kuma-loong:fix/log-device_index-null

Conversation

@kuma-loong
Copy link
Copy Markdown
Contributor

Fixed device_index appearing as null in logs when graph_mode is enabled.

Copy link
Copy Markdown
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

This pull request introduces a utility function to_int32_device_index in core/platform/device.h to standardize the conversion of device indices to int32_t for logging and NUMA mapping. The changes update the distributed runtime, CUDA kernels, and graph executors to utilize this helper. Feedback was provided to ensure that new include statements follow the repository's style guide by using project-root-relative paths.

Comment thread xllm/core/distributed_runtime/dist_manager.cpp
Comment thread xllm/core/kernels/cuda/utils.h
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.

2 participants