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

"OutOfMemory" or "Try increasing the workspace size" #366

Open
marcoslucianops opened this issue Jun 5, 2023 · 0 comments
Open

"OutOfMemory" or "Try increasing the workspace size" #366

marcoslucianops opened this issue Jun 5, 2023 · 0 comments

Comments

@marcoslucianops
Copy link
Owner

marcoslucianops commented Jun 5, 2023

ERROR: [TRT]: 2: [virtualMemoryBuffer.cpp::resizePhysical::160] Error Code 2: OutOfMemory (no further information)
ERROR: [TRT]: 2: [virtualMemoryBuffer.cpp::resizePhysical::145] Error Code 2: OutOfMemory (no further information)
WARNING: [TRT]: Requested amount of GPU memory (4294967296 bytes) could not be allocated. There may not be enough free memory for allocation to succeed.
WARNING: [TRT]: Skipping tactic 3 due to insufficient memory on requested size of 4294967296 detected for tactic 0x0000000000000004.
Try decreasing the workspace size with IBuilderConfig::setMemoryPoolLimit().

or

INFO: ../nvdsinfer/nvdsinfer_func_utils.cpp:39 [TRT]: Some tactics do not have sufficient workspace memory to run. Increasing workspace size may increase performance, please check verbose output.
ERROR: ../nvdsinfer/nvdsinfer_func_utils.cpp:33 [TRT]: Try increasing the workspace size with IBuilderConfig::setMaxWorkspaceSize() if using IBuilder::buildEngineWithConfig, or IBuilder::setMaxWorkspaceSize() if using IBuilder::buildCudaEngine.

If you get similar error, try to set the workspace-size to a value less than the GPU memory in the config_infer_primary file.

Example for GPU with 4GB memory

[property]
...
workspace-size=2000
...
@marcoslucianops marcoslucianops pinned this issue Jun 5, 2023
@marcoslucianops marcoslucianops changed the title Error Code 2: OutOfMemory (no further information) "OutOfMemory" or "Try increasing the workspace size" Jun 5, 2023
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