8000 Dependency for numpy 1.17 by xaleryb · Pull Request #977 · IntelPython/sdc · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Dependency for numpy 1.17 #977

Merged
merged 5 commits into from
Jun 2, 2021
Merged

Dependency for numpy 1.17 #977

merged 5 commits into from
Jun 2, 2021

Conversation

xaleryb
Copy link
Contributor
@xaleryb xaleryb commented May 17, 2021

This PR is to follow Anaconda BKM to build using the oldest numpy with a stable API, which is 1.16. Intel's oldest numpy supporting python 3.7 is numpy 1.17, so we use that only at build time so ensure broadest compatibility with newer numpy versions.

Relates to tensorflow/tensorflow#47691 (TensorFlow does not support numpy 1.20.x)

@kozlov-alexey
Copy link
Contributor

Hi, @xaleryb, is this only for testing purposes? What is the rationale for this? I think we should not restrict numpy version for SDC at all, since by itself it doesn't need specific numpy.

@xaleryb
Copy link
Contributor Author
xaleryb commented May 24, 2021

hi @kozlov-alexey this is not for testing only we plan to merge and include to 2021.3 release. This is not a restriction because we do not set run dependency for numpy 1.17 (this is inly for building) and we expect sdc build (based on numpy 1.17) working with latest numpy which will be a part of 2021.3. This is for compatibility on AIKIt level

@kozlov-alexey
Copy link
Contributor
kozlov-alexey commented May 24, 2021

this is not for testing only we plan to merge and include to 2021.3 release.

Then this has to merged to development branch first, as per our agreements.

But:

... we expect sdc build (based on numpy 1.17) working with latest numpy which will be a part of 2021.3. This is for compatibility on AIKIt level

this has impact not only on AIKit but anyone who will build SDC with conda. There should probably be other way to restrict numpy version that is used when building SDC for AIKit, shouldn't it?

@kozlov-alexey kozlov-alexey added this to the 0.39 milestone May 24, 2021
@xaleryb xaleryb changed the base branch from gold/2021 to master May 24, 2021 17:42
Copy link
Contributor
@kozlov-alexey kozlov-alexey left a comment

Choose a reason for hiding this comment

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

@tomashek, @xaleryb I would prefer not to submit this as there's no requirement for SDC package itself to be built with specific numpy version. Also there are no description in the commit that explains why this change is needed and when it can be reverted (if it's some kind of workaround, at least some GitHub reference is needed). Also there should generally be more proper ways of fixing numpy version during specific conda builds (e.g. CONDA_NPY env variable may be set).

@xaleryb xaleryb changed the base branch from master to gold/2021 May 26, 2021 13:36
@@ -25,7 +25,8 @@ requirements:
- python
- setuptools
- numba {{ NUMBA_VERSION }}
- numpy
- numpy # [win or osx or py==38]
Copy link
Contributor

Choose a reason for hiding this comment

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

Why numba build version is restricted only on linux and python=3.7?
How it's going to work on win or linux+python=3.8 (i.e. will the core issue remain unsolved there)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The initial problem we are trying to resolve by this change is applicable only for linux.

@kozlov-alexey
Copy link
Contributor

No description provided.

Please add description with motivation for this change and add the reference to related Github/Jira issues.

@xaleryb
Copy link
Contributor Author
xaleryb commented May 26, 2021

No description provided.

Please add description with motivation for this change and add the reference to related Github/Jira issues.

@tomashek could you please share this information if any.
We need to merge this change ASAP because a lot of work we need to perform right after this to check our release is good to go.

@tomashek
Copy link

No description provided.

Please add description with motivation for this change and add the reference to related Github/Jira issues.

@kozlov-alexey , I do not think there is an Issue in this github to reference.

@kozlov-alexey kozlov-alexey merged commit 24a961e into gold/2021 Jun 2, 2021
@xaleryb xaleryb deleted the xaleryb/numpy1.17 branch June 2, 2021 13:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0