Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6674 from cms-sw/tf-241
Update Tensorflow 2.4.1
- Loading branch information
Showing
22 changed files
with
119 additions
and
66 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
### RPM external flatbuffers-toolfile 1.0 | ||
Requires: flatbuffers | ||
%prep | ||
|
||
%build | ||
|
||
%install | ||
|
||
mkdir -p %i/etc/scram.d | ||
cat << \EOF_TOOLFILE >%i/etc/scram.d/flatbuffers.xml | ||
<tool name="flatbuffers" version="@TOOL_VERSION@"> | ||
<lib name="flatbuffers"/> | ||
<client> | ||
<environment name="FLATBUFFERS_BASE" default="@TOOL_ROOT@"/> | ||
<environment name="INCLUDE" default="$FLATBUFFERS_BASE/include"/> | ||
<environment name="LIBDIR" default="$FLATBUFFERS_BASE/lib64"/> | ||
</client> | ||
<runtime name="PATH" value="$FLATBUFFERS_BASE/bin" type="path"/> | ||
</tool> | ||
EOF_TOOLFILE | ||
|
||
## IMPORT scram-tools-post |
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,31 @@ | ||
### RPM external flatbuffers 1.12.0 | ||
## INITENV +PATH LD_LIBRARY_PATH %{i}/lib64 | ||
|
||
%define tag v%{realversion} | ||
%define branch master | ||
%define github_user google | ||
Source: git+https://github.com/%{github_user}/%{n}.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}-%{tag}.tgz | ||
|
||
BuildRequires: cmake gmake | ||
|
||
%prep | ||
%setup -n %{n}-%{realversion} | ||
|
||
%build | ||
rm -rf ../build | ||
mkdir ../build | ||
cd ../build | ||
|
||
cmake ../%{n}-%{realversion} \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DFLATBUFFERS_BUILD_CPP17=ON \ | ||
-DFLATBUFFERS_BUILD_SHAREDLIB=ON \ | ||
-DFLATBUFFERS_BUILD_TESTS=OFF \ | ||
-DCMAKE_INSTALL_PREFIX="%{i}" | ||
|
||
make -v %{makeprocesses} | ||
|
||
%install | ||
cd ../build | ||
|
||
make %{makeprocesses} install |
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 @@ | ||
%define PipDownloadSourceType none |
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 @@ | ||
Requires: py3-google-auth py3-requests-oauthlib |
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 @@ | ||
Requires: py3-cachetools py3-pyasn1-modules py3-rsa py2-six |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
Requires: py3-numpy py2-absl-py py2-grpcio | ||
Requires: py3-google-auth-oauthlib py3-tensorboard-plugin-wit | ||
%define PipPostBuild mv %{i}/bin/tensorboard %{i}/bin/tensorboard3 |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Requires: py3-tensorboard py3-opt-einsum py2-tensorflow-estimator py2-wrapt py2-google-pasta py3-scipy | ||
BuildRequires: tensorflow-python3-sources | ||
%define PipPreBuildPy3 PIPFILE=${TENSORFLOW_PYTHON3_SOURCES_ROOT}/tensorflow-%{realversion}-cp38-cp38-linux_%{_arch}.whl | ||
BuildRequires: tensorflow-sources | ||
%define PipPreBuildPy3 PIPFILE=${TENSORFLOW_SOURCES_ROOT}/tensorflow-%{realversion}-cp38-cp38-linux_%{_arch}.whl | ||
%define PipPostBuild rm -f %{i}/bin/tensorboard* ; ls %{i}/bin/* | xargs -i mv '{}' '{}3' |
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 @@ | ||
Requires: py3-oauthlib py2-requests |
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 @@ | ||
Requires: py2-pyasn1 |
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 @@ | ||
%define PipDownloadSourceType none |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Requires: python python3 py2-numpy py2-enum34 py2-mock py2-wheel | ||
Requires: python python3 py2-numpy py2-enum34 py2-mock py2-wheel py2-typing py2-typing_extensions | ||
Requires: py2-keras-applications py2-keras-preprocessing py2-setuptools py2-future py2-wrapt py2-gast py3-setuptools | ||
Requires: py2-cython py2-googlePackages py2-functools32 py2-astor py2-six py2-termcolor py2-absl-py | ||
Requires: py2-backports py2-opt-einsum py3-opt-einsum | ||
Requires: eigen protobuf zlib libpng libjpeg-turbo curl pcre giflib sqlite swig | ||
Requires: py2-backports py2-opt-einsum py3-opt-einsum py3-flatbuffers | ||
Requires: eigen protobuf zlib libpng libjpeg-turbo curl pcre giflib sqlite grpc flatbuffers |
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
### RPM external tensorflow-sources 2.3.1 | ||
%define python_cmd python | ||
%define python_env PYTHON27PATH | ||
### RPM external tensorflow-sources 2.4.1 | ||
%define python_cmd python3 | ||
%define python_env PYTHON3PATH | ||
%define build_type opt | ||
%define pythonOnly no | ||
%define vectorize_flag -msse3 | ||
Requires: py2-futures | ||
## INCLUDE tensorflow-sources | ||
|
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