-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
multiple IExecutionContext for getDeviceMemorySize #3437
Comments
I think the OptimizationProfile was determined when you build the engine, so each each engine has its own OptizationProfile.
In this case I think What you mean is multiple ICudaEngine with different IOptimizationProfile?
I think the answer it's no, IOptimizationProfile can affect the size returned by getDeviceMemorySize. These are just my understanding, @ttyio @pranavm-nvidia please correct if I made any mistake :-) |
Hi, thanks for your reply. I build one ICudaEngine with multiple |
I think it's this.
I think the memory size should be different(but not always, it depends on kernel tactics), you can verified this by experiment. |
Thx for your reply. If so, I would suggest getDeviceMemorySize should be a method of IExecutionContext/IOptimizationProfile, not ICudaEngine. It is quite strange and I donot quite understand... |
@oxana-nvidia @nvpohanh any comments here ^ ^ |
We are currently discussing possible API changes in this area for the next major release. |
@zerollzeng I don't think this is correct. I think |
Oh my understanding is wrong. sorry. |
No worries! As Oxana said, we are discussing some improvements on these APIs in next TRT version. Hopefully things will be improved in the future |
closing since no activity for more than 3 weeks, thanks all |
I have multiple IExecutionContexts, each with an different OptimizationProfile.
Is ICudaEngine's getDeviceMemorySize unrelated to OptimizationProfile?
The text was updated successfully, but these errors were encountered: