-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release tf_gpu_cuda12.6_cudnn9.4_avx2_mkl_trt10.4
- Loading branch information
1 parent
fba0310
commit 3f56e9a
Showing
12 changed files
with
6,210 additions
and
123 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
usage() { | ||
echo "Usage: $0 -p <py3_ver> -t <tf_ver>" | ||
echo " -p <py3_ver> Python version to use (6-12)" | ||
echo " -t <tf_ver> TensorFlow version to use (2.3.0, 2.4.0, etc.)" | ||
} | ||
|
||
if [ $# -lt 4 ]; then | ||
usage | ||
exit | ||
fi | ||
|
||
while getopts "ht:p:" opt; do | ||
case $opt in | ||
p) | ||
py3_ver=$OPTARG | ||
;; | ||
t) | ||
tf_ver=$OPTARG | ||
;; | ||
h) | ||
usage | ||
exit | ||
;; | ||
\?) | ||
echo "Invalid option: -$OPTARG" >&2 | ||
usage | ||
exit | ||
;; | ||
esac | ||
done | ||
if [ "$py3_ver" -lt 6 ] || [ "$py3_ver" -gt 12 ]; then | ||
echo "Python version must be between 6 and 12" | ||
usage | ||
exit | ||
fi | ||
|
||
rm -rf venvs | ||
python3.$py3_ver -m venv venvs/py3$py3_ver | ||
. venvs/py3${py3_ver}/bin/activate | ||
|
||
# Get most recent wheel | ||
tf_wheel=$(ls ../wheels/tensorflow/tensorflow-${tf_ver}-cp3${py3_ver}-*-linux_x86_64.whl) | ||
echo "Installing TensorFlow wheel $tf_wheel" | ||
pip install -q "$tf_wheel" | ||
pip uninstall -q -y tensorflow-io tensorflow-io-gcs-filesystem | ||
|
||
bazel clean --expunge | ||
python tools/build/configure.py | ||
bazel build --config=linux --config=optimization --copt="-mavx" --copt="-mavx2" --copt="-Wno-error=dangling-pointer=" --copt="-Wno-error=array-bounds=" --copt="-Wno-error=array-parameter=" --copt="-I/usr/include/tirpc" //tensorflow_io/... //tensorflow_io_gcs_filesystem/... | ||
python setup.py bdist_wheel --data bazel-bin --project tensorflow-io | ||
python setup.py bdist_wheel --data bazel-bin --project tensorflow-io-gcs-filesystem | ||
mv dist/tensorflow_io*.whl ../wheels/io | ||
bazel clean --expunge | ||
|
||
deactivate | ||
rm -rf venvs |
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
usage() { | ||
echo "Usage: $0 -p <py3_ver> -t <tf_ver>" | ||
echo " -p <py3_ver> Python version to use (6-12)" | ||
echo " -t <tf_ver> TensorFlow version to use (2.3.0, 2.4.0, etc.)" | ||
} | ||
|
||
if [ $# -lt 4 ]; then | ||
usage | ||
exit | ||
fi | ||
|
||
while getopts "ht:p:" opt; do | ||
case $opt in | ||
p) | ||
py3_ver=$OPTARG | ||
;; | ||
t) | ||
tf_ver=$OPTARG | ||
;; | ||
h) | ||
usage | ||
exit | ||
;; | ||
\?) | ||
echo "Invalid option: -$OPTARG" >&2 | ||
usage | ||
exit | ||
;; | ||
esac | ||
done | ||
if [ "$py3_ver" -lt 6 ] || [ "$py3_ver" -gt 12 ]; then | ||
echo "Python version must be between 6 and 12" | ||
usage | ||
exit | ||
fi | ||
|
||
rm -rf venvs | ||
python3.$py3_ver -m venv venvs/py3$py3_ver | ||
. venvs/py3${py3_ver}/bin/activate | ||
|
||
# Get most recent wheel | ||
tf_wheel=$(ls ../wheels/tensorflow/tensorflow-${tf_ver}-cp3${py3_ver}-*-linux_x86_64.whl) | ||
echo "Installing TensorFlow wheel $tf_wheel" | ||
pip install -q --ignore-requires-python "$tf_wheel" | ||
pip uninstall -q -y tensorflow-text | ||
|
||
bazel clean --expunge | ||
./oss_scripts/run_build.sh | ||
mv tensorflow_text-*.whl ../wheels/text | ||
bazel clean --expunge | ||
|
||
deactivate | ||
rm -rf venvs |
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,12 @@ | ||
FROM quay.io/pypa/manylinux_2_28_x86_64 | ||
|
||
RUN dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo \ | ||
&& dnf clean all \ | ||
&& dnf -y install cuda-toolkit-12-6 libcudnn9-devel tensorrt-devel libnccl-devel clang libtirpc-devel | ||
RUN curl -L "https://github.com/bazelbuild/bazelisk/releases/download/v1.21.0/bazelisk-linux-amd64" -o /usr/local/bin/bazel \ | ||
&& chmod +x /usr/local/bin/bazel \ | ||
&& echo "startup --output_user_root=/tmp/bazel" > /etc/bazel.bazelrc | ||
ENV BAZELISK_HOME=/tmp/bazelisk USER=build | ||
|
||
WORKDIR /build | ||
CMD ["/bin/bash"] |
Oops, something went wrong.