Skip to content

python: use torch.set_default_device in blocking_send_recv_example.py - #261

Merged
tstamler merged 1 commit into
ai-dynamo:mainfrom
ZhangShuaiyi:bugfix_blocking_send_recv_example
May 7, 2025
Merged

tstamler merged 1 commit into
ai-dynamo:mainfrom
ZhangShuaiyi:bugfix_blocking_send_recv_example

Conversation

@ZhangShuaiyi

Copy link
Copy Markdown
Contributor

Fix: #260
Use torch.set_default_device("cuda:0") to select the device and simplify the code for the --use-cuda parameter , which was introduced in #221.

Signed-off-by: Shuaiyi Zhang <zhangsy28@lenovo.com>
@copy-pr-bot

copy-pr-bot Bot commented May 7, 2025

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions

github-actions Bot commented May 7, 2025

Copy link
Copy Markdown

👋 Hi ZhangShuaiyi! Thank you for contributing to ai-dynamo/nixl.

Your PR reviewers will review your contribution then trigger the CI to test your changes.

🚀

@tstamler
tstamler self-requested a review May 7, 2025 17:21
@tstamler tstamler self-assigned this May 7, 2025
@tstamler

tstamler commented May 7, 2025

Copy link
Copy Markdown
Contributor

/ok to test eda4143

@tstamler tstamler left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thanks for noticing, if it passes in CI I think its a good change

@tstamler
tstamler merged commit 9135a18 into ai-dynamo:main May 7, 2025
vvenkates27 pushed a commit that referenced this pull request May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The --use-cuda parameter in blocking_send_recv_example.py raises a RuntimeError

2 participants