-
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 2 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
63 changes: 63 additions & 0 deletions
63
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,63 @@ | ||
| diff -ruN jax_orig/build/build.py jax/build/build.py | ||
| --- jax_orig/build/build.py 2021-07-30 10:18:43.599233082 +0200 | ||
| +++ jax/build/build.py 2021-08-02 15:58:09.654165000 +0200 | ||
| @@ -41,7 +41,7 @@ | ||
| else: | ||
| from distutils.spawn import find_executable as which | ||
| # pylint: enable=g-import-not-at-top | ||
| - | ||
| +use_default_shell_env = True | ||
deniskristak marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| def is_windows(): | ||
| return sys.platform.startswith("win32") | ||
| Binary files jax_orig/.git/index and jax/.git/index differ | ||
| diff -ruN jax_orig/jaxlib/jax.bzl jax/jaxlib/jax.bzl | ||
| --- jax_orig/jaxlib/jax.bzl 2021-07-30 10:18:47.211049000 +0200 | ||
| +++ jax/jaxlib/jax.bzl 2021-08-02 10:39:41.567268000 +0200 | ||
| @@ -30,3 +30,4 @@ | ||
| if_rocm_is_configured = _if_rocm_is_configured | ||
| flatbuffer_cc_library = _flatbuffer_cc_library | ||
| flatbuffer_py_library = _flatbuffer_py_library | ||
| +use_default_shell_env = True | ||
| diff -ruN jax_orig/jaxlib/lapack.pyx jax/jaxlib/lapack.pyx | ||
| --- jax_orig/jaxlib/lapack.pyx 2021-07-30 10:18:47.214725015 +0200 | ||
| +++ jax/jaxlib/lapack.pyx 2021-07-30 10:23:25.084607000 +0200 | ||
| @@ -49,6 +49,7 @@ | ||
|
|
||
| cdef int _int32_max = 0x7FFFFFFF; | ||
|
|
||
| +use_default_shell_env = True | ||
|
|
||
| cdef register_cpu_custom_call_target(fn_name, void* fn): | ||
| cdef const char* name = "xla._CUSTOM_CALL_TARGET" | ||
| diff -ruN jax_orig/WORKSPACE jax/WORKSPACE | ||
| --- jax_orig/WORKSPACE 2021-07-30 10:18:43.503078000 +0200 | ||
| +++ jax/WORKSPACE 2021-08-03 18:13:58.627602000 +0200 | ||
| @@ -7,17 +7,24 @@ | ||
| # and update the sha256 with the result. | ||
| http_archive( | ||
| name = "org_tensorflow", | ||
| - sha256 = "de22145c9dc51b3ed9399dbee2ab681f094f09e5213d6819451da500f163a14b", | ||
| + # sha256 = "de22145c9dc51b3ed9399dbee2ab681f094f09e5213d6819451da500f163a14b", | ||
| strip_prefix = "tensorflow-8cc3ffa8d8e4dd659c1534849cf5984ef4ec3532", | ||
| urls = [ | ||
| "https://github.com/tensorflow/tensorflow/archive/8cc3ffa8d8e4dd659c1534849cf5984ef4ec3532.tar.gz", | ||
| ], | ||
| + patch_cmds=['sed -i -e "s|arguments = \[args\],|arguments = \[args\],\\n\\tuse_default_shell_env = True,|" third_party/mlir/tblgen.bzl'] | ||
| ) | ||
|
|
||
| -# For development, one can use a local TF repository instead. | ||
| +# # For development, one can use a local TF repository instead. | ||
| # local_repository( | ||
| # name = "org_tensorflow", | ||
| -# path = "tensorflow", | ||
| +# path = "/apps/gent/CO7/skylake-ib/software/TensorFlow/2.5.0-foss-2020b", | ||
deniskristak marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| +# ) | ||
| +# new_local_repository( | ||
| +# name = "org_tensorflow", | ||
| +# path = "/apps/gent/CO7/skylake-ib/software/TensorFlow/2.5.0-foss-2020b/lib/python3.8/site-packages/tensorflow/", | ||
| +# # build_file = "org_tensorflow.BUILD", | ||
| + | ||
| # ) | ||
|
|
||
| load("//third_party/pocketfft:workspace.bzl", pocketfft = "repo") | ||
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,35 @@ | ||
| easyblock = 'PythonPackage' | ||
|
|
||
| name = 'jax' | ||
| version = '0.2.18' | ||
|
|
||
| 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'} | ||
|
|
||
| # source_urls = [PYPI_SOURCE] | ||
| # sources = [SOURCE_TAR_GZ] | ||
|
|
||
| source_urls = ['https://github.com/google/jax/archive/'] | ||
| sources = ['%(name)s-v%(version)s.tar.gz'] | ||
| patches = [ | ||
| 'jax-0.2.18-correct_libraries.patch', | ||
| ] | ||
|
|
||
| preinstallopts = 'python3 build/build.py --output_user_root=%(builddir)s --bazel_path="$EBROOTBAZEL/bin/bazel" && ' | ||
| preinstallopts += 'pip install dist/*.whl && ' | ||
boegel marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
deniskristak marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| dependencies = [ | ||
| ('Python', '3.8.6'), | ||
| ('Bazel', '3.7.2'), | ||
| ('SciPy-bundle', '2020.11'), | ||
| ('Cython', '0.29.22'), | ||
boegel marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| # ('TensorFlow', '2.5.0'), do we need this? | ||
boegel marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ] | ||
|
|
||
| use_pip = True | ||
deniskristak marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
| 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.