Skip to content

Commit

Permalink
Don't export /usr/local/opt/llvm/lib to linker search path on MacOS. (
Browse files Browse the repository at this point in the history
#936)

* Don't export `/usr/local/opt/llvm/lib` to linker search path on MacOS.
* Only cancel runs of PRs.
* Bump up learning engine submodules.
* set LDFLAGS temporary during make graphscope on macOS for link libomp.dymic

Signed-off-by: Tao He <[email protected]>
Co-authored-by: lidongze0629 <[email protected]>
  • Loading branch information
sighingnow and lidongze0629 authored Nov 3, 2021
1 parent 52ebbaa commit 7cfe16b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cancel.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Cancel Stale Runs

on: [push, pull_request_target]
on: [pull_request_target]

jobs:
cancel:
Expand Down
3 changes: 2 additions & 1 deletion k8s/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ graphscope-darwin-py3:
sudo rm -fr /tmp/libvineyard /tmp/libgrape-lite
# build graphscope
cd $(WORKING_DIR)/../ && \
export LDFLAGS=-L/usr/local/opt/llvm/lib && \
make install WITH_LEARNING_ENGINE=OFF && \
unset LDFLAGS && \
sudo install_name_tool -add_rpath /usr/local/lib /opt/graphscope/bin/executor && \
sudo install_name_tool -add_rpath /usr/local/lib /opt/graphscope/bin/gaia_executor && \
python3 $(WORKING_DIR)/precompile.py
Expand Down Expand Up @@ -179,7 +181,6 @@ graphscope-client-manylinux2014-py3:
cmake .. -DCMAKE_PREFIX_PATH=/opt/vineyard \
-DCMAKE_INSTALL_PREFIX=/opt/vineyard \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_VINEYARD_IO_OSS=ON \
-DBUILD_VINEYARD_MIGRATION=OFF && \
sudo make install vineyard_client_python -j`nproc` && \
sudo cp -rf /opt/vineyard/* /usr/local/ && \
Expand Down
3 changes: 1 addition & 2 deletions k8s/ubuntu/gsvineyard.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ RUN cd /tmp && \
mkdir -p /tmp/libvineyard/build && \
cd /tmp/libvineyard/build && \
cmake .. -DBUILD_VINEYARD_PYPI_PACKAGES=ON \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_VINEYARD_IO_OSS=ON && \
-DBUILD_SHARED_LIBS=ON && \
make install vineyard_client_python -j && \
cd /tmp/libvineyard && \
python3 setup.py bdist_wheel && \
Expand Down
2 changes: 1 addition & 1 deletion learning_engine/graph-learn
Submodule graph-learn updated 1 files
+11 −1 CMakeLists.txt
10 changes: 5 additions & 5 deletions scripts/deploy_local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,6 @@ write_envs_config() {
# packages_to_install contains llvm
echo "export CC=/usr/local/opt/llvm/bin/clang"
echo "export CXX=/usr/local/opt/llvm/bin/clang++"
echo "export LDFLAGS=-L/usr/local/opt/llvm/lib"
echo "export CPPFLAGS=-I/usr/local/opt/llvm/include"
echo "export PATH=/usr/local/opt/llvm/bin:\$PATH"
if [ -z "${JAVA_HOME}" ]; then
Expand Down Expand Up @@ -699,7 +698,6 @@ install_dependencies() {
export OPENSSL_SSL_LIBRARY=/usr/local/opt/openssl/lib/libssl.dylib
export CC=/usr/local/opt/llvm/bin/clang
export CXX=/usr/local/opt/llvm/bin/clang++
export LDFLAGS=-L/usr/local/opt/llvm/lib
export CPPFLAGS=-I/usr/local/opt/llvm/include
fi

Expand Down Expand Up @@ -798,11 +796,10 @@ install_vineyard() {
if [[ "${PLATFORM}" == *"Darwin"* ]]; then
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_VINEYARD_SERVER=OFF \
-DBUILD_VINEYARD_IO_OSS=ON -DBUILD_VINEYARD_TESTS=OFF
-DBUILD_VINEYARD_TESTS=OFF
else
cmake .. -DBUILD_SHARED_LIBS=ON \
-DBUILD_VINEYARD_IO_OSS=ON -DBUILD_VINEYARD_TESTS=OFF
-DBUILD_VINEYARD_TESTS=OFF
fi
make -j${NUM_PROC}
make vineyard_client_python -j${NUM_PROC}
Expand Down Expand Up @@ -840,7 +837,10 @@ install_graphscope() {
pushd ${SOURCE_DIR}

if [[ "${PLATFORM}" == *"Darwin"* ]]; then
# need libomp.dylib to find MPI_CXX
export LDFLAGS=-L/usr/local/opt/llvm/lib
make install WITH_LEARNING_ENGINE=OFF INSTALL_PREFIX=${INSTALL_PREFIX} NETWORKX=OFF BUILD_TYPE=${BUILD_TYPE}
unset LDFLAGS
else
make install WITH_LEARNING_ENGINE=ON INSTALL_PREFIX=${INSTALL_PREFIX} BUILD_TYPE=${BUILD_TYPE}
fi
Expand Down

0 comments on commit 7cfe16b

Please sign in to comment.