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

Filling Genotype with jnp.zeros doesn't allocate GPU memory #69

Open
maxiallard opened this issue Jul 27, 2022 · 0 comments
Open

Filling Genotype with jnp.zeros doesn't allocate GPU memory #69

maxiallard opened this issue Jul 27, 2022 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@maxiallard
Copy link
Collaborator

Hello :),

When running more memory intensive QD algorithms, it is possible to be out of memory when filling up the repertoire. I found a comment on the jax repo, it seems that jnp.zeros is not really allocating memory which means that every time we add individuals, we start allocating memory. I haven't specifically tested the memory usage but when changing the initialization of the genotype to jnp.nan, it seems that I get less OOM errors (might be an illusion). So we might want to investigate this a little further.

@maxiallard maxiallard self-assigned this Jul 27, 2022
@maxiallard maxiallard added bug Something isn't working enhancement New feature or request labels Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant