Skip to content

[CUDA] Set current device before allocating memory - #3110

Merged
zcbenz merged 1 commit into
ml-explore:mainfrom
zcbenz:set-device-before-malloc
Feb 8, 2026
Merged

[CUDA] Set current device before allocating memory#3110
zcbenz merged 1 commit into
ml-explore:mainfrom
zcbenz:set-device-before-malloc

Conversation

@zcbenz

@zcbenz zcbenz commented Feb 7, 2026

Copy link
Copy Markdown
Member

This is a followup to #3100 that fixes illegal memory access when using MLX under multi-device environment.

@awni awni left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice! Thanks for fixing that!

@zcbenz
zcbenz merged commit 9cd4b9b into ml-explore:main Feb 8, 2026
16 checks passed
@zcbenz
zcbenz deleted the set-device-before-malloc branch February 8, 2026 10:04
jzdziarski pushed a commit to jzdziarski/mlx that referenced this pull request Jul 26, 2026
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