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

Out of memory error in example #2

Open
JakeDaynes opened this issue Jun 17, 2022 · 1 comment
Open

Out of memory error in example #2

JakeDaynes opened this issue Jun 17, 2022 · 1 comment

Comments

@JakeDaynes
Copy link

Compiled for Android using Readme, and getting:

crate context: Out of memory

When I try to run the mali_common_c_example on a Pixel 6 Pro 99% of the time.

@JakeDaynes
Copy link
Author

JakeDaynes commented Jun 17, 2022

Modifying lines 54-56 to:

int status = -1;
while (status < 0) {
status = hpc_gpu_mali_common_create_context(num_counters, counters,
&allocator, &context);
}

Has fixed it so it starts running now, but obviously this isn't a good solution.

EDIT:

Dug a little and it looks like line 130 of /lib/gpu/mali/context.c is failing to open the counter reader, which takes me to line 147 of the lib/gpu/mali/driver_ioctl.c file's hpc_gpu_mali_ioctl_open_counter_reader method.

Changing the buffer_count to 8 from 16 seems to have fixed the issue entirely.

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