Skip to content

Commit

Permalink
jax install
Browse files Browse the repository at this point in the history
  • Loading branch information
swryan committed Nov 22, 2024
1 parent fd1afb7 commit 7f86ddf
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The use of JAX is optional for OpenMDAO so if not already installed, the user needs to install it. See the [installation instructions](https://github.com/google/jax#installation) for more information about installing JAX."
"The use of JAX is optional for OpenMDAO so if not already installed, the user needs to install it by ",
"issuing one of the following commands at your operating system command prompt:\n",
"```\n",
"pip install jax jaxlib\n",
"pip install openmdao[jax]\n",
"pip install openmdao[all]\n",
"```\n"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,12 @@
"\n",
"If the function used to instantiate the ExplicitFuncComp declares partials or coloring that use `method='jax'`, or if the component's `derivs_method` option is set to `jax`, then the jax AD package will be used to compute all of the component's derivatives. Currently it's not possible to mix jax with finite difference methods ('cs' and 'fd') in the same component.\n",
"\n",
"Note that `jax` is not an OpenMDAO dependency, so you'll have to install it manually.\n",
"Issuing the following commands at your operating system command prompt should work in most cases:\n",
"Note that `jax` is not an OpenMDAO dependency that is installed by default, so you'll have to install it by ",
"issuing one of the following commands at your operating system command prompt:\n",
"```\n",
"pip install jax\n",
"pip install jaxlib\n",
"pip install jax jaxlib\n",
"pip install openmdao[jax]\n",
"pip install openmdao[all]\n",
"```\n",
"\n",
"To activate jax's just-in-time compilation capability, set the `use_jit` option on the component. For example:"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,12 @@
"\n",
"If the function used to instantiate the ExplicitFuncComp declares partials or coloring that use `method='jax'`, or if the component's `derivs_method` option is set to `jax`, then the jax AD package will be used to compute all of the component's derivatives. Currently it's not possible to mix jax with finite difference methods ('cs' and 'fd') in the same component.\n",
"\n",
"Note that `jax` is an optional OpenMDAO dependency, but you can install it manually.\n",
"Issuing the following commands at your operating system command prompt should work in most cases:\n",
"Note that `jax` is not an OpenMDAO dependency that is installed by default, so you'll have to install it by ",
"issuing one of the following commands at your operating system command prompt:\n",
"```\n",
"pip install jax\n",
"pip install jaxlib\n",
"pip install jax jaxlib\n",
"pip install openmdao[jax]\n",
"pip install openmdao[all]\n",
"```\n",
"\n",
"To activate jax's just-in-time compilation capability, set the `use_jit` option on the component. For example:"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The use of JAX is optional for OpenMDAO so if not already installed, the user needs to install it. See the [installation instructions](https://github.com/google/jax#installation) for more information about installing JAX."
"Note that `jax` is not an OpenMDAO dependency that is installed by default, so you'll have to install it by ",
"issuing one of the following commands at your operating system command prompt:\n",
"```\n",
"pip install jax jaxlib\n",
"pip install openmdao[jax]\n",
"pip install openmdao[all]\n",
"```\n"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The use of JAX is optional for OpenMDAO so if not already installed, the user needs to install it. See the [installation instructions](https://github.com/google/jax#installation) for more information about installing JAX."
"Note that `jax` is not an OpenMDAO dependency that is installed by default, so you'll have to install it by ",
"issuing one of the following commands at your operating system command prompt:\n",
"```\n",
"pip install jax jaxlib\n",
"pip install openmdao[jax]\n",
"pip install openmdao[all]\n",
"```\n"
]
},
{
Expand Down

0 comments on commit 7f86ddf

Please sign in to comment.