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

Allocation fail warnings with Metal backend #10

Closed
sleepyeye opened this issue Apr 8, 2023 · 2 comments
Closed

Allocation fail warnings with Metal backend #10

sleepyeye opened this issue Apr 8, 2023 · 2 comments

Comments

@sleepyeye
Copy link

Hi!
During testing LuisaRender, the renderer printed memory allocation warnings
whenever I use Metal backend with the mega kernel setup.
The renderer does render the output image but I left the issue
since it may have some potential problems.

Regardless of setup (scenes or parameters,...), warnings are identical where it is
Failed to allocate 67108864 bytes from MetalHostBufferPool~.

I'm currently using Macbook pro Apple M1 Max with MacOS 13.3.

@Mike-Leo-Smith
Copy link
Contributor

Hi, @sleepyeye

The warnings are fine.

We use a memory pool for stage buffers to minimize the memory allocation and preparation overhead, when uploading data to or downloading data from the GPU. The pool has a default size of 64MB, and when the transfer size exceeds that, ad-hoc allocations occur and such warnings are reported.

In LuisaRender, this may occur when uploading large meshes/textures to the GPU, and when retrieving high-resolution renderings back to the CPU. But both should have little impact on the rendering performance. So, it's fine to just ignore it :-)

@sleepyeye
Copy link
Author

Thanks!

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

2 participants