-
Notifications
You must be signed in to change notification settings - Fork 763
{tools}[foss/2020b] jax v0.2.19 #13622
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
Merged
boegel
merged 29 commits into
easybuilders:develop
from
deniskristak:20210805110301_new_pr_jax0218
Aug 14, 2021
Merged
Changes from 15 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
fe77982
adding easyconfigs: jax-0.2.18-foss-2020b.eb
f3e3c7c
adding jax patch
4339d94
tmp dir prefix
4909247
removed unnecessary code
56b1d48
patch comment
40672c6
patch cleanup
04ddadd
cleanup
23c2f13
Update easybuild/easyconfigs/j/jax/jax-0.2.18-foss-2020b.eb
deniskristak af41b43
Update easybuild/easyconfigs/j/jax/jax-0.2.18-foss-2020b.eb
deniskristak 09fe906
Update easybuild/easyconfigs/j/jax/jax-0.2.18-foss-2020b.eb
deniskristak bd3383d
Update easybuild/easyconfigs/j/jax/jax-0.2.18-foss-2020b.eb
deniskristak 14f386c
latest progress on jax installation
885ebcb
removing absl-py from deps
544bda6
using buildcmd option
497398e
latest progress on jax
98dbee5
latest progress on jax
a4988de
latest progress on jax
a7cb72c
latest jax changes
edc2060
remove opt-einsum dependency for jax, since it's installed as an exte…
boegel ea71459
add checksums to jax easyconfig
boegel 415ba09
latest jax changes
2286043
remove commented out line from jax easyconfig
boegel 1210ab0
stick to specific TensorFlow commit used by jaxlib 0.1.70, enable bui…
boegel c1735ce
enable building with native optimizations for build host (triggers us…
boegel 4b67573
Merge branch '20210805110301_new_pr_jax0218' of github.com:deniskrist…
boegel 71475e9
run jax test suite
boegel 54fb8ef
rename jax patch to prevent TensorFlow download during build
boegel 94ccf12
add easyconfigs for pytest-xdist and pytest-benchmark build dependenc…
boegel e0f7c0f
update to jax 0.2.19
boegel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
easybuild/easyconfigs/j/jax/jax-0.2.18-controlled_tf_tarball.patch
This file contains hidden or 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,12 @@ | ||
| # using system environment variables | ||
| diff -ruN tensorflow-2.5.0_orig/third_party/mlir/tblgen.bzl tensorflow-2.5.0/third_party/mlir/tblgen.bzl | ||
| --- tensorflow-2.5.0_orig/third_party/mlir/tblgen.bzl 2021-05-12 15:26:41.000000000 +0200 | ||
| +++ tensorflow-2.5.0/third_party/mlir/tblgen.bzl 2021-08-11 12:23:34.301593036 +0200 | ||
| @@ -153,6 +153,7 @@ | ||
| inputs = trans_srcs, | ||
| executable = ctx.executable.tblgen, | ||
| arguments = [args], | ||
| + use_default_shell_env = True, | ||
| ) | ||
|
|
||
| return [DefaultInfo()] |
36 changes: 36 additions & 0 deletions
36
easybuild/easyconfigs/j/jax/jax-0.2.18-correct_libraries.patch
This file contains hidden or 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 @@ | ||
| diff -ruN jax-jaxlib-v0.1.70_orig/WORKSPACE jax-jaxlib-v0.1.70/WORKSPACE | ||
| --- jax-jaxlib-v0.1.70_orig/WORKSPACE 2021-08-12 13:12:54.025608000 +0200 | ||
| +++ jax-jaxlib-v0.1.70/WORKSPACE 2021-08-12 13:32:51.581961000 +0200 | ||
| @@ -5,21 +5,20 @@ | ||
| # b) get the sha256 hash of the commit by running: | ||
| # curl -L https://github.com/tensorflow/tensorflow/archive/<git hash>.tar.gz | sha256sum | ||
| # and update the sha256 with the result. | ||
| -http_archive( | ||
| +# http_archive( | ||
| +# name = "org_tensorflow", | ||
| +# sha256 = "0f13410284b9186e436350e9617b3bed2d65f1dc1a220fd37ad9ef43c2035663", | ||
| +# strip_prefix = "tensorflow-4039feeb743bc42cd0a3d8146ce63fc05d23eb8d", | ||
| +# urls = [ | ||
| +# "https://github.com/tensorflow/tensorflow/archive/4039feeb743bc42cd0a3d8146ce63fc05d23eb8d.tar.gz", | ||
| +# ], | ||
| +# ) | ||
| + | ||
| +local_repository( | ||
| name = "org_tensorflow", | ||
| - sha256 = "0f13410284b9186e436350e9617b3bed2d65f1dc1a220fd37ad9ef43c2035663", | ||
| - strip_prefix = "tensorflow-4039feeb743bc42cd0a3d8146ce63fc05d23eb8d", | ||
| - urls = [ | ||
| - "https://github.com/tensorflow/tensorflow/archive/4039feeb743bc42cd0a3d8146ce63fc05d23eb8d.tar.gz", | ||
| - ], | ||
| + path = "pathToSed", | ||
| ) | ||
|
|
||
| -# For development, one can use a local TF repository instead. | ||
| -# local_repository( | ||
| -# name = "org_tensorflow", | ||
| -# path = "tensorflow", | ||
| -# ) | ||
| - | ||
| load("//third_party/pocketfft:workspace.bzl", pocketfft = "repo") | ||
| pocketfft() | ||
|
|
This file contains hidden or 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,87 @@ | ||
| # This file is an EasyBuild reciPY as per https://github.com/easybuilders/easybuild | ||
| # Author: Denis Kristak | ||
| easyblock = 'PythonBundle' | ||
|
|
||
| name = 'jax' | ||
| version = '0.2.18' | ||
| local_jaxlib_ver = '0.1.70' | ||
| homepage = 'https://pypi.python.org/pypi/jax' | ||
| description = """Composable transformations of Python+NumPy programs: differentiate, vectorize, JIT to GPU/TPU, and | ||
| more""" | ||
|
|
||
| toolchain = {'name': 'foss', 'version': '2020b'} | ||
|
|
||
| # downloading TF tarball for better control of what Bazel will use during installation of Jax | ||
| local_tf_tarball_version = '2.5.0' | ||
|
|
||
| builddependencies = [ | ||
| ('Bazel', '3.7.2'), | ||
| ] | ||
|
|
||
| dependencies = [ | ||
| ('Python', '3.8.6'), | ||
| ('SciPy-bundle', '2020.11'), | ||
| ('Cython', '0.29.22'), | ||
| ('opt-einsum', '3.3.0'), | ||
boegel marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ('flatbuffers-python', '1.12'), | ||
| ] | ||
|
|
||
| local_tf_builddir = "%%(builddir)s/tensorflow-%s" % local_tf_tarball_version | ||
|
|
||
| local_jax_preinstallopts = "sed -i -e 's$pathToSed$%s$g' WORKSPACE && " % local_tf_builddir | ||
|
|
||
| local_jax_build_cmd = "sed -i -e 's$pathToSed$%s$g' WORKSPACE && " % local_tf_builddir | ||
| local_jax_build_cmd += 'python build/build.py ' | ||
| local_jax_build_cmd += '--bazel_startup_options="--output_user_root=%(builddir)s" ' | ||
| local_jax_build_cmd += '--bazel_path="$EBROOTBAZEL/bin/bazel" ' | ||
| local_jax_build_cmd += '--bazel_options=--subcommands ' | ||
| local_jax_build_cmd += '--bazel_options=--jobs=1 --bazel_options=--action_env=PYTHONPATH ' | ||
boegel marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| local_jax_build_cmd += '--bazel_options=--action_env=EBPYTHONPREFIXES' | ||
|
|
||
|
|
||
| exts_list = [ | ||
| ('opt-einsum', '3.3.0', { | ||
| 'source_tmpl': 'opt_einsum-%(version)s.tar.gz', | ||
| 'modulename': 'opt_einsum', | ||
| }), | ||
| ('absl-py', '0.13.0', { | ||
boegel marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 'modulename': 'absl' | ||
| })] | ||
|
|
||
| default_component_specs = { | ||
| 'sources': [SOURCE_TAR_GZ], | ||
| 'start_dir': '%(name)s-%(version)s', | ||
| } | ||
|
|
||
| components = [ | ||
| ('jaxlib', local_jaxlib_ver, { | ||
| 'easyblock': 'PythonPackage', | ||
boegel marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 'sources': [ | ||
| 'jaxlib-v%s.zip' % local_jaxlib_ver, | ||
| { | ||
| 'download_filename': 'v%s.tar.gz' % local_tf_tarball_version, | ||
| 'filename': 'tensorflow_v%s.tar.gz' % local_tf_tarball_version, | ||
| } | ||
| ], | ||
| 'source_urls': [ | ||
| 'https://github.com/google/jax/archive/', | ||
| 'https://github.com/tensorflow/tensorflow/archive/' | ||
| ], | ||
| 'patches': [ | ||
| ('jaxlib-%s-correct_libraries.patch' % local_jaxlib_ver, 1), | ||
| ('jaxlib-%s-controlled_tf_tarball.patch' % local_jaxlib_ver, '../tensorflow-%s' % local_tf_tarball_version), | ||
| ], | ||
| 'start_dir': 'jax-jaxlib-v%s' % local_jaxlib_ver, | ||
| 'preinstallopts': local_jax_preinstallopts, | ||
boegel marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 'use_pip': True, | ||
| 'sanity_pip_check': True, | ||
| 'download_dep_fail': True, | ||
| 'buildcmd': local_jax_build_cmd, | ||
| 'install_src': 'dist/*.whl', | ||
| }), | ||
| ('jax', '0.2.18', { | ||
boegel marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 'easyblock': 'PythonPackage', | ||
| }), | ||
| ] | ||
|
|
||
| moduleclass = 'tools' | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.