Skip to content

Defaults jax to use cpu - #21

Open
rducrist wants to merge 1 commit into
mainfrom
fix/default_to_cpu
Open

rducrist wants to merge 1 commit into
mainfrom
fix/default_to_cpu

Conversation

@rducrist

Copy link
Copy Markdown
Collaborator

It's preferable to default jax to cpu. One some machines the default platform is gpu and jax allocates most of the available gpu memory. This might cause conflict with other gpu intensive processes, like simulation.
The alternative to this change is to set the XLA_PYTHON_CLIENT_PREALLOCATE=false. I think option one is cleaner.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Martin said this could still allocate GPU memory. I think
jax.config.update('jax_platform_name', 'cpu')
is cleaner

@ratheron

Copy link
Copy Markdown
Collaborator

We should also make sure that the ROS connectors run on CPU as well.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

2 participants