diff --git a/extra-scientific/tensorflow/autobuild/build b/extra-scientific/tensorflow/autobuild/build deleted file mode 100644 index 0712c6dcfa7f..000000000000 --- a/extra-scientific/tensorflow/autobuild/build +++ /dev/null @@ -1,51 +0,0 @@ -cd tensorflow-${PKGVER} - -./configure - -if [[ "${CROSS:-$ARCH}" = "amd64" ]]; then - bazel build -c opt --config=cuda \ - tensorflow:libtensorflow.so -else - bazel build -c opt \ - tensorflow:libtensorflow.so -fi - -mkdir -p "$PKGDIR"/usr/lib/pkgconfig -cat << EOF > "$PKGDIR"/usr/lib/pkgconfig/tensorflow.pc -prefix=/usr -exec_prefix=\${prefix} -libdir=\${exec_prefix}/lib -includedir=\${prefix}/include -modules=1 - -Name: $PKGNAME -Version: $PKGVER -Description: $PKGDES -Requires: -Libs: -L\${libdir} -ltensorflow -lstdc++ -Cflags: -I\${includedir}/tensorflow -EOF - -install -Dm644 tensorflow/c/c_api.h "$PKGDIR"/usr/include/tensorflow/c_api.h -install -Dm644 bazel-bin/tensorflow/libtensorflow.so \ - "$PKGDIR"/usr/lib/libtensorflow.so - -cd "$SRCDIR"/tensorflow-${PKGVER}-py3 - -PYTHON_BIN_PATH=/usr/bin/python3 ./configure -if [[ "${CROSS:-$ARCH}" = "amd64" ]]; then - bazel build -c opt --config=cuda \ - //tensorflow/tools/pip_package:build_pip_package -else - bazel build -c opt \ - //tensorflow/tools/pip_package:build_pip_package -fi - -bazel-bin/tensorflow/tools/pip_package/build_pip_package "$SRCDIR"/tensorflow-${PKGVER}-py3/pytmp - -WHEEL_PACKAGE=`find "$SRCDIR"/tensorflow-${PKGVER}-py3/pytmp -name "tensor*.whl"` - -pip3 install --ignore-installed --upgrade --root "$PKGDIR"/ $WHEEL_PACKAGE --no-dependencies -find "$PKGDIR" -name __pycache__ -exec rm -r {} + - -cd "$SRCDIR" diff --git a/extra-scientific/tensorflow/autobuild/defines b/extra-scientific/tensorflow/autobuild/defines deleted file mode 100644 index 9cb8f50be782..000000000000 --- a/extra-scientific/tensorflow/autobuild/defines +++ /dev/null @@ -1,11 +0,0 @@ -PKGNAME=tensorflow -PKGSEC=science -PKGDEP="jemalloc numpy keras keras-applications keras-preprocessing \ - abseil-py astor gast" -PKGSUG="cudnn" -BUILDDEP="bazel cudnn opencl-registry-api wheel mock nccl" -PKGDES="Computation using data flow graphs for scalable machine learning" - -AB_FLAGS_O3=1 -NOLTO=1 -NOPARALLEL=1 diff --git a/extra-scientific/tensorflow/autobuild/prepare b/extra-scientific/tensorflow/autobuild/prepare deleted file mode 100644 index 281755936355..000000000000 --- a/extra-scientific/tensorflow/autobuild/prepare +++ /dev/null @@ -1,45 +0,0 @@ -cp -r tensorflow-${PKGVER} \ - tensorflow-${PKGVER}-py3 - -export PYTHON_BIN_PATH=/usr/bin/python3 -export USE_DEFAULT_PYTHON_LIB_PATH=1 - -export HOST_C_COMPILER=/usr/bin/gcc -export HOST_CXX_COMPILER=/usr/bin/g++ -export GCC_HOST_COMPILER_PATH=/usr/bin/gcc - -if [[ "${CROSS:-$ARCH}" = "amd64" ]]; then - export TF_NEED_CUDA=1 - export TF_UNOFFICIAL_SETTING=1 - export CUDA_TOOLKIT_PATH=/usr/lib/cuda - export CUDNN_INSTALL_PATH=/usr/lib/cuda - export TF_CUDA_VERSION=$($CUDA_TOOLKIT_PATH/bin/nvcc --version | sed -n 's/^.*release \(.*\),.*/\1/p') - export TF_CUDNN_VERSION=$(sed -n 's/^#define CUDNN_MAJOR\s*\(.*\).*/\1/p' $CUDNN_INSTALL_PATH/include/cudnn.h) - export TF_CUDA_COMPUTE_CAPABILITIES=3.5,5.2 -fi - -export USE_DEFAULT_PYTHON_LIB_PATH=1 -export TF_NEED_JEMALLOC=1 -export TF_NEED_KAFKA=0 -export TF_NEED_OPENCL_SYCL=0 -export TF_NEED_GCP=0 -export TF_NEED_HDFS=0 -export TF_NEED_S3=0 -export TF_ENABLE_XLA=1 -export TF_NEED_GDR=0 -export TF_NEED_VERBS=0 -export TF_NEED_OPENCL=0 -export TF_NEED_MPI=0 -export TF_NEED_TENSORRT=0 -export TF_NEED_ROCM=0 -export TF_CUDA_CLANG=0 -export TF_SET_ANDROID_WORKSPACE=0 -export HTTP_PROXY=`echo $http_proxy | sed -e 's/\/$//'` -export HTTPS_PROXY=`echo $https_proxy | sed -e 's/\/$//'` -export TF_DOWNLOAD_CLANG=0 -export TF_NCCL_VERSION=2.4.2 -export NCCL_INSTALL_PATH=/usr -export TF_IGNORE_MAX_BAZEL_VERSION=1 -export TF_CUDA_PATHS=/usr/lib/cuda,/usr/lib,/usr,/opt/cuda - -export CC_OPT_FLAGS="${CPPFLAGS} ${CFLAGS}" diff --git a/extra-scientific/tensorflow/spec b/extra-scientific/tensorflow/spec deleted file mode 100644 index b8a20aa518a1..000000000000 --- a/extra-scientific/tensorflow/spec +++ /dev/null @@ -1,5 +0,0 @@ -VER=1.15.0 -SRCTBL="https://github.com/tensorflow/tensorflow/archive/v$VER.tar.gz" -CHKSUM="sha256::a5d49c00a175a61da7431a9b289747d62339be9cf37600330ad63b611f7f5dc9" -SUBDIR=. -REL=1