From 486cca440e4302d9ad427aa2efa30591d712d11e Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Tue, 23 Jan 2024 04:26:14 -0500 Subject: [PATCH] revert packaging C library - not compatible Signed-off-by: Jinzhe Zeng --- source/install/docker_package_c.sh | 5 ----- source/install/package_c.sh | 5 +---- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/source/install/docker_package_c.sh b/source/install/docker_package_c.sh index 2a33ae78a4..544c175a0a 100755 --- a/source/install/docker_package_c.sh +++ b/source/install/docker_package_c.sh @@ -2,15 +2,10 @@ set -e SCRIPT_PATH=$(dirname $(realpath -s $0)) -wget https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.1.2%2Bcpu.zip -O libtorch.zip -unzip libtorch.zip -mv libtorch ${SCRIPT_PATH}/../libtorch - docker run --rm -v ${SCRIPT_PATH}/../..:/root/deepmd-kit -w /root/deepmd-kit \ tensorflow/build:${TENSORFLOW_BUILD_VERSION:-2.15}-python3.11 \ /bin/sh -c "pip install \"tensorflow${TENSORFLOW_VERSION}\" cmake \ && cd /root/deepmd-kit/source/install \ && CC=/dt9/usr/bin/gcc \ CXX=/dt9/usr/bin/g++ \ - CMAKE_PREFIX_PATH=/root/deepmd-kit/source/libtorch \ /bin/sh package_c.sh" diff --git a/source/install/package_c.sh b/source/install/package_c.sh index 272f6e6931..0c145b22af 100755 --- a/source/install/package_c.sh +++ b/source/install/package_c.sh @@ -15,10 +15,7 @@ NPROC=$(nproc --all) BUILD_TMP_DIR=${SCRIPT_PATH}/../build_c mkdir -p ${BUILD_TMP_DIR} cd ${BUILD_TMP_DIR} -cmake \ - -D ENABLE_TENSORFLOW=ON \ - -D ENABLE_PYTORCH=ON \ - -D CMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \ +cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \ -DUSE_CUDA_TOOLKIT=TRUE \ -DPACKAGE_C=TRUE \ -DUSE_TF_PYTHON_LIBS=TRUE \