Skip to content

[torchcodec] delay device map init to runtime and fix targets #631

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 10, 2025

Conversation

scotts
Copy link
Contributor

@scotts scotts commented Apr 9, 2025

Summary:
We were running into the Static Initialization Order Fiasco: https://en.cppreference.com/w/cpp/language/siof

We avoid this problem by delaying the initialization of the device map until runtime.

Differential Revision: D72722867

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Apr 9, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D72722867

…h#631)

Summary:
Pull Request resolved: pytorch#631

We were running into the Static Initialization Order Fiasco: https://en.cppreference.com/w/cpp/language/siof

We avoid this problem by delaying the initialization of the device map until runtime.

Differential Revision: D72722867
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D72722867

@scotts scotts force-pushed the export-D72722867 branch from 3c1ba4d to f63639b Compare April 9, 2025 19:42
@facebook-github-bot facebook-github-bot merged commit 619f1ce into pytorch:main Apr 10, 2025
46 of 48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants