-
Notifications
You must be signed in to change notification settings - Fork 23
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
Stuck in the process of compiling C++ extensions #1
Comments
neurvps/neurvps/models/deformable.py Line 21 in e2f8d19
|
Feel free to reopen this issue if you have more clues and updates. |
hello |
did you fix the issue? I have the same problem. Thanks |
@Agrechka and @yashnsn I found a solution if you guys still need it: go to your .cache directory, delete the lock file for your cpp extension (it is likely under the directory ~/.cache/torch_extensions/something), and you should be able to run it again. If you can't find your cache directory, you can run python -m pdb your_program.py and break at your .../lib/python3.X/site-packages/torch/utils/cpp_extension.py line 1179 (specifically the line containing "baton = FileBaton(os.path.join(build_directory, 'lock'))") and then print "build_directory". That should be the cache directory for your programs. Hope this helps! |
I remove the .cache directory. But the same issue occurs. |
Exact the same issue as yashnsn and Agrechka, Thank you so much @KellyYutongHe |
@KellyYutongHe you're a hero |
@KellyYutongHe Thank you so much !! You saved my lot of time. |
Thanks for the great answer. Also, for those who have difficulties finding what the "something" is in the "~/.cache/torch_extensions/something". I found it useful to evaluate the expression "os.path.join(build_directory, 'lock')" in some remote debug session (I use Pycharm remote debugging) and you will get what you want. For me, the "something" happens to be the "spmm_0". Therefore, after "rm -rf ~/.cache/torch_extensions/spmm_0", the bug is fixed. |
It works! |
CUDA VERSION:9.0
Python VERSION:3.6.8
Pytorch VERSION:1.2.0
I downloaded the tmm17 dataset and pre-trained model from Google Drive and used the command
to evaluate the tmm17 dataset, but after outputting
, the program has no other output. When I interrupt the program, I can see the program stucked in the "torch.utils.cpp_extension.load" function.
Is there any problem with this operation?
This is the complete output:
The text was updated successfully, but these errors were encountered: