Skip to content

Apply the same thread-local approach to the CPU#3537

Open
angeloskath wants to merge 1 commit into
mainfrom
thread-safe-cpu
Open

Apply the same thread-local approach to the CPU#3537
angeloskath wants to merge 1 commit into
mainfrom
thread-safe-cpu

Conversation

@angeloskath
Copy link
Copy Markdown
Member

As the title says, apply the same logic to protect the CPU command encoders.

Specifically, the temporaries and the num_ops which could be edited by different threads simultaneously.

Also fixed the test since it was silently failing for the CPU.

@angeloskath angeloskath requested a review from zcbenz May 12, 2026 21:38
Copy link
Copy Markdown
Collaborator

@zcbenz zcbenz left a comment

Choose a reason for hiding this comment

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

Nice!

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