Fix Transform cmake (#111)
* target_link_libraries(OMElideKrnlGlobalConstants ...) adds duplicated ../lib/libOMKrnlOps.a ../lib/libOMONNXOps.a at end of linkage for onnx-mlir and breaks shared library build * Fix .buildbot/z13.sh to prepare for zLinux Jenkins build bot Co-authored-by: Gong Su <gong_su@hotmail.com>
This commit is contained in:
parent
f5f336db08
commit
922b6b6c91
|
@ -15,29 +15,23 @@ if [[ -z "${LLVM_PROJECT_ROOT}" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set up mock installation path:
|
# Set up mock installation path:
|
||||||
export INSTALL_PATH=$WORKSPACE/INSTALL_PATH
|
export INSTALL_PATH=${WORKSPACE}/INSTALL_PATH
|
||||||
mkdir -p $INSTALL_PATH
|
mkdir -p ${INSTALL_PATH}
|
||||||
export PATH=$INSTALL_PATH/bin:$PATH
|
export PATH=${INSTALL_PATH}/bin:${PATH}
|
||||||
export LD_LIBRARY_PATH=$INSTALL_PATH/lib:$INSTALL_PATH/lib64:$LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH=${INSTALL_PATH}/lib:${INSTALL_PATH}/lib64:${LD_LIBRARY_PATH}
|
||||||
export CPATH=$INSTALL_PATH/include:$CPATH
|
export CPATH=${INSTALL_PATH}/include:${CPATH}
|
||||||
|
|
||||||
# Set up project specific environment variables:
|
# Set up project specific environment variables:
|
||||||
export PATH=$JAVA_HOME/bin:$PATH
|
export PATH=${JAVA_HOME}/bin:${PATH}
|
||||||
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar:$CLASSPATH
|
export CLASSPATH=.:${JAVA_HOME}/lib:${JAVA_HOME}/lib/tools.jar:${CLASSPATH}
|
||||||
export CC=/usr/bin/gcc
|
|
||||||
export CXX=/usr/bin/g++
|
|
||||||
export BUILD_PATH=$(pwd)
|
|
||||||
export CPATH=$(pwd)/../runtime/
|
|
||||||
|
|
||||||
mkdir build && cd build
|
export BUILD_PATH=build-against-$(basename ${LLVM_PROJECT_ROOT})
|
||||||
cmake -DCMAKE_C_COMPILER=$CC \
|
mkdir ${BUILD_PATH} && cd ${BUILD_PATH}
|
||||||
-DCMAKE_CXX_COMPILER=$CXX \
|
|
||||||
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=$INSTALL_PATH \
|
|
||||||
-DONNX_MLIR_ENABLE_NODE_TEST_JAVA=ON \
|
|
||||||
-DONNX_MLIR_ENABLE_NODE_TEST_JNI=ON \
|
|
||||||
-DONNX_MLIR_ENABLE_NODE_TEST_CPP=OFF \
|
|
||||||
-DONNX_MLIR_TARGET_ARCH=z13 ..
|
|
||||||
|
|
||||||
make -j "$(nproc)" install
|
LLVM_PROJ_SRC=${LLVM_PROJECT_ROOT} \
|
||||||
ctest -j "$(nproc)"
|
LLVM_PROJ_BUILD=${LLVM_PROJECT_ROOT}/build \
|
||||||
|
cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_PATH} .. \
|
||||||
|
|
||||||
|
make -j$(nproc) onnx-mlir
|
||||||
|
make -j$(nproc) check-onnx-lit
|
||||||
|
make -j$(nproc) check-onnx-backend
|
||||||
|
|
|
@ -31,8 +31,7 @@ target_include_directories(OMElideKrnlGlobalConstants
|
||||||
${ONNX_MLIR_SRC_ROOT}
|
${ONNX_MLIR_SRC_ROOT}
|
||||||
${ONNX_MLIR_BIN_ROOT}
|
${ONNX_MLIR_BIN_ROOT}
|
||||||
${ONNX_MLIR_SRC_ROOT})
|
${ONNX_MLIR_SRC_ROOT})
|
||||||
target_link_libraries(OMElideKrnlGlobalConstants
|
add_dependencies(OMElideKrnlGlobalConstants
|
||||||
${MLIRLibs}
|
|
||||||
OMKrnlOps
|
OMKrnlOps
|
||||||
OMONNXOps)
|
OMONNXOps)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue