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
MaxWorkSpace #51
Comments
That is a first trial to get roughly 4Gb from your GPU. If your GPU is not big enough to allocate this, then I try decreasing by halving each time, 2Gb, 1Gb, etc. I would recommend you set it to half your usual GPU free memory per model. |
cool! Not to ask too much... to allocate half, would you do size=15; (1<<size) ? |
sorry ill ask again in a better way: when you use size = 32 and then (1<<size) evaluates to 1073741824.. can you explain how this corresponds to 4 Gb? |
No, it would be You could also do |
thank you Andres! |
my pleasure |
Hey Andres,
In the NetTRT.cpp code, the line:
_builder->setMaxWorkspaceSize(1 << size);
I assume this means the amount of GPU mem allocated for the network? You use size 32. What does this mean in this context?
If i wanted to deploy two models (two .uff files), on one GPU, how do you recommend i proceed?
The text was updated successfully, but these errors were encountered: