-
Notifications
You must be signed in to change notification settings - Fork 34
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
TensorFlow 2.7.0 No AVX, No GPU, Python 3.7, 3.8, 3.9, Ubuntu 18.04, multiple Archs #206
Comments
New to Tensorflow, low level of Linux knowledge. Is there documentation I can read to help get this set up on my machine? I'm not sure which GCC Compiler Option I require. Thanks! |
Figured it out, nevermind! |
I'm on Devuan 4 (Debian 11), Python 3.9.2, AMD Athlon(tm) II X2 215 Processor; the architecture I would need is |
Successfully ran build /core2/tensorflow-2.6.2-cp39-cp39-linux_x86_64.whl on my Synology 920+ NAS (Intel Celeron J4125 CPU) inside docker. This is the only noavx wheel that fits my needs I could find in last couple of days. @Novaal, you saved my month man! |
@isaackogan So how do you determine which GCC Compiler Option to use? Im trying to install Tensorflow within a Docker image |
Trial and error, I did not (do not) have the foreknowledge to do it any other way. There were only 5 builds, so it was just a matter of wasting a bit of time on my end. Sorry I can't help further. |
@DrChrisLevy @isaackogan The Intel Xeon E5520 is based on the Intel microarchitecture @DrChrisLevy |
Thanks @Novaal ! |
Im new using linux and this litterally saved me. Thanks <3 |
@Novaal Do you think you can make similar builds for 2.9? I'm interested in Barcelona. We have a 2.9 dependency and I'm trying to run the application in a container on a m1 machine but its not working. |
@Asarioglo Thanks for your interest in my builds. Unfortunatly i will not build any new wheels for new Tensorflow versions. But i hope i can give you some hints.
#!/bin/bash
# check if necessary envs are available
for i in PYTHON_VERSION PYTHON_VERSION_SHORT CI_ENVIRONMENT_NAME TF_VERSION
do
if [ -z ${!i} ];
then
echo "variable '$i' is not set";
exit 1;
fi
done
cd /tensorflow_src
PYTHON_BIN_PATH=$(which $PYTHON_VERSION) \
PYTHON_LIB_PATH=$($PYTHON_VERSION -c "import pip; print(pip.__path__[0].rstrip('/pip'))") \
TF_NEED_CUDA=0 \
TF_NEED_ROCM=0 \
TF_DOWNLOAD_CLANG=0 \
CC_OPT_FLAGS="-march=$CI_ENVIRONMENT_NAME -Wno-sign-compare" \
TF_SET_ANDROID_WORKSPACE=0 \
TF_ENABLE_XLA=1 \
TF_NEED_OPENCL_SYCL=0 \
TF_NEED_MPI=0 \
./configure
cat .tf_configure.bazelrc
# build files, can take a while
bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package &> log.txt
# create package
./bazel-bin/tensorflow/tools/pip_package/build_pip_package /mnt
ls -la /mnt Take in consideration, that one build can take some while. In my case each build took up to 10 hours. |
Hi. I am trying to build the package to install tf for e500v2 (ppc853) -avx. But the problem is that I cant find the bazel for this arch. Could anyone help me? |
Can y'all please stop callilng this a QEMU/Rosetta bug? Their hands are sort of tied due to AVX being patented by intel. People still need to be able to test your software via docker emulation because they might be working on an M1 mac but running on intel chips in the cloud, and without the need for maintaining two sets of CI scripts. |
@Novaal Thank you so much for your exceptional work also with different version: |
Built on Ubuntu 18.04. Builds are not tested and provided as is.
Example configuration for Python 3.7 and
westmere
:This produces the following
.tf_configure.bazelrc
for Python 3.7.(-march)
Install with:
Please let me know here if it works for you.
The text was updated successfully, but these errors were encountered: