AOTI tutorial `CUDA_HOME`
📚 The doc issue
I am trying to follow https://pytorch.org/tutorials/recipes/torch_export_aoti_python.html but it seems it doesn't work on our nightly runtime images cause missing CUDA_HOME.
Suggest a potential alternative/fix
No response
cc @svekars @brycebortree @sekyondaMeta @ezyang @chauhang @penguinwu @avikchaudhuri @gmagogsfm @zhxchen17 @tugsbayasgalan @angelayi @suo @ydwu4 @desertfire @chenyang78
/cc @agunapal @angelayi @svekars it is working only with devel image
Hi @bhack I believe that is correct. Generation of the .so requires a devel image. That was my observation too when I tried it few months ago.
Is this what we want? If yes do we want to document it?
Will update the tutorial once https://github.com/pytorch/pytorch/issues/140055 and https://github.com/pytorch/pytorch/issues/140053 are resolved. This likely already works in the nightlies
Any update?
@bhack i will update the tutorial for PT 2.6
@agunapal I am adding g++ in runtime images with https://github.com/pytorch/pytorch/pull/138612 to solve https://github.com/pytorch/pytorch/issues/116696 (torch.compile) but I suppose that it is not enough for you export. What do you think?
Yes, I will mention in the updated tutorial that you need a devel image to create .pt2 package