RuntimeError: cuda runtime error (7) : too many resources requested for launch at /media/nvidia/WD_BLUE_2.5_1TB/pytorch-v1.1.0/aten/src/THCUNN/generic/SpatialUpSamplingBilinear.cu:67
I don’t think PyTorch v1.2.0 has this patch, because the patch changes the CUDA block dims at compile time (so applying that would change it for all GPUs). I will try building v1.2.0 tomorrow and applying the patch.
Thanks Dusty! I had just commented on the GitHub issue where you posted the original fix. The wheels posted on that thread did not work for me, but I’ll try this for 3.6 tomorrow.
I actually started to build 1.2.0 on the Jetson Nano, which should (fingers crossed that no errors occurred) be done tomorrow morning; I could let you know whether the vanilla 1.2.0 is a fix if it’d be helpful.
Hi Gerard, those wheels from the GitHub issue are the same ones that I posted here. They work on my Nano though.
Sure, that would be great - let me know. I think 1.2.0 might fix just that particular function, so I will still probably apply my patch which aims to address a wider group of functions (but does not fix all, as noted in the GitHub issue), and was not included in 1.2.0.
Hmm, I am able to run that code without issue on Nano, same PyTorch v1.2.0 wheel. Did you try fully uninstalling previous PyTorch version before installing the new wheel? “pip uninstall torch”. Also, are you on JetPack 4.2.1?
That is the path on my system from where the PyTorch code was built (different system from my Nano that I tested the above on). It doesn’t have an effect at runtime, except when you see code debugging messages that include the full path of the original code. If you want to look at that code referenced by the error, check the PyTorch v1.2.0 branch on GitHub.