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

CUDA too many resources #28

Open
dan9thsense opened this issue Sep 14, 2018 · 0 comments
Open

CUDA too many resources #28

dan9thsense opened this issue Sep 14, 2018 · 0 comments

Comments

@dan9thsense
Copy link

dan9thsense commented Sep 14, 2018

I encountered this error:
RuntimeError: cuda runtime error (7) : too many resources requested for launch at jetson-reinforcement/build/pytorch/torch/lib/THCUNN/generic/SpatialUpSamplingBilinear.cu:63

Found a solution here: discussion and commit

I made the suggested changes to

jetson-reinforcement/build/pytorch/torch/lib/THCUNN/imcol2.h

but the error persisted. I modified the library

jetson-reinforcement/build/pytorch/torch/lib/THCUNN/SpatialUpSamplingBilinear.cu

with the suggested change from the discussion and also modified the generic

jetson-reinforcement/build/pytorch/torch/lib/THCUNN/generic/SpatialUpSamplingBilinear.cu

to limit the value of num_threads to 1024 on line 58.

Recompiled and that problem was fixed. However, now another pops up:

too many resources requested for launch at pytorch/torch/lib/THCUNN/generic/SpatialDilatedMaxPooling.cu:228

Do you have to patch all of the libraries to make it work?

I understand that this is a pytorch problem and should probably be addressed there, but the discussion is closed there, marked as resolved, the patch applied. I do need to use version 0.3.0 for other compatibility issues. I am wondering if perhaps I am doing something wrong in the build process.

Any help would be much appreciated.

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

1 participant