Skip to content
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

torch.inductor error: Cannot create a file when that file already exists #10

Open
generic-placeholder-name opened this issue Oct 27, 2024 · 1 comment

Comments

@generic-placeholder-name

When I try to use torch.compile, the following error occurs:

BackendCompilerFailed: backend='inductor' raised:
FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'C:\\Users\\minhk\\AppData\\Local\\Temp\\torchinductor_minhk\\cache\\.27456.33436.tmp' -> 'C:\\Users\\minhk\\AppData\\Local\\Temp\\torchinductor_minhk\\cache\\2a71ae31166f4b5aef4ad99f88246ea08fca21f95829ec7d6819e72c196f217b'

I don't know what the problem is, since Triton itself actually works fine.

@jepjoo
Copy link

jepjoo commented Oct 27, 2024

This will likely fix that:
pytorch/pytorch#138211

so in torch/_inductor/codecache.py edit tmp_path.rename to tmp_path.replace

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

No branches or pull requests

2 participants