-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JAX-CFD] tweak installation & tests
The tweaks to the test suite ensure everything passes on my local installation on my MacBook, and shave a few minutes off the execution time. If the README instructions are followed, the whole test-suite runs in about two and a half minutes on my Mac. It excludes the "validation tests", which are too slow to run on CPU. PiperOrigin-RevId: 374442976
- Loading branch information
Showing
10 changed files
with
104 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Copyright 2021 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
"""An ML modeling library built on Haiku and Gin-Config for JAX-CFD.""" | ||
|
||
import jax_cfd.ml.advections | ||
import jax_cfd.ml.decoders | ||
import jax_cfd.ml.diffusions | ||
import jax_cfd.ml.encoders | ||
import jax_cfd.ml.equations | ||
import jax_cfd.ml.forcings | ||
import jax_cfd.ml.interpolations | ||
import jax_cfd.ml.layers | ||
import jax_cfd.ml.layers_util | ||
import jax_cfd.ml.model_builder | ||
import jax_cfd.ml.model_utils | ||
import jax_cfd.ml.networks | ||
import jax_cfd.ml.nonlinearities | ||
import jax_cfd.ml.optimizer_modules | ||
import jax_cfd.ml.physics_specifications | ||
import jax_cfd.ml.pressures | ||
import jax_cfd.ml.tiling | ||
import jax_cfd.ml.time_integrators | ||
import jax_cfd.ml.towers | ||
import jax_cfd.ml.viscosities |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,25 +15,24 @@ | |
"""Setup JAX-CFD.""" | ||
import setuptools | ||
|
||
|
||
INSTALL_REQUIRES = [ | ||
'absl-py', | ||
'jax', | ||
'numpy', | ||
'scipy', | ||
'matplotlib', | ||
'seaborn', | ||
'Pillow', | ||
'xarray', | ||
] | ||
base_requires = ['jax', 'numpy', 'scipy'] | ||
data_requires = ['matplotlib', 'seaborn', 'Pillow', 'xarray'] | ||
ml_requires = ['dm-haiku', 'einops', 'gin-config'] | ||
tests_requires = ['absl-py', 'pytest', 'pytest-xdist', 'scikit-image'] | ||
|
||
setuptools.setup( | ||
name='jax-cfd', | ||
version='0.0.0', | ||
version='0.1.0', | ||
license='Apache 2.0', | ||
author='Google LLC', | ||
author_email='[email protected]', | ||
install_requires=INSTALL_REQUIRES, | ||
install_requires=base_requires, | ||
extras_require={ | ||
'data': data_requires, | ||
'ml': ml_requires, | ||
'tests': tests_requires, | ||
'complete': data_requires + ml_requires + tests_requires, | ||
}, | ||
url='https://github.com/google/jax-cfd', | ||
packages=setuptools.find_packages(), | ||
python_requires='>=3', | ||
|