Skip to content

Commit

Permalink
Add linux-arm64 platform to tensorrt
Browse files Browse the repository at this point in the history
  • Loading branch information
devjeonghwan committed May 6, 2021
1 parent 3b6efa7 commit 02341d2
Show file tree
Hide file tree
Showing 360 changed files with 7,448 additions and 7,484 deletions.
436 changes: 218 additions & 218 deletions .github/actions/deploy-centos/action.yml

Large diffs are not rendered by default.

254 changes: 127 additions & 127 deletions .github/actions/deploy-macosx/action.yml
Original file line number Diff line number Diff line change
@@ -1,127 +1,127 @@
name: Deploy on Mac OS X
runs:
using: composite
steps:
- name: Install environment
shell: bash
run: |
cd $HOME
export MACOSX_DEPLOYMENT_TARGET=10.13
echo "MACOSX_DEPLOYMENT_TARGET=$MACOSX_DEPLOYMENT_TARGET" >> $GITHUB_ENV
brew install boost ccache gcc swig autoconf-archive automake cmake libomp libtool libusb ant maven nasm xz pkg-config sdl gpg1 bison flex perl ragel binutils gradle gmp isl libmpc mpfr geoip pcre ssdeep yajl
if [[ -n ${CI_DEPLOY_NEED_GCC:-} ]]; then
brew uninstall gcc@8 gcc@9 gcc@10
brew install gcc@7
brew link --overwrite gcc@7
echo Removing "fixed" header files that are actually broken
sudo rm -Rf $(find /usr/local/Cellar/gcc@7/ -iname include-fixed)
echo Fixing up some binaries to support rpath
sudo install_name_tool -add_rpath /usr/local/lib/gcc/7/ -add_rpath @loader_path/. -id @rpath/libgomp.1.dylib /usr/local/lib/gcc/7/libgomp.1.dylib
sudo install_name_tool -add_rpath /usr/local/lib/gcc/7/ -add_rpath @loader_path/. -id @rpath/libstdc++.6.dylib /usr/local/lib/gcc/7/libstdc++.6.dylib
sudo install_name_tool -add_rpath /usr/local/lib/gcc/7/ -add_rpath @loader_path/. -id @rpath/libgfortran.4.dylib /usr/local/lib/gcc/7/libgfortran.4.dylib
sudo install_name_tool -add_rpath /usr/local/lib/gcc/7/ -add_rpath @loader_path/. -id @rpath/libquadmath.0.dylib /usr/local/lib/gcc/7/libquadmath.0.dylib
sudo install_name_tool -add_rpath /usr/local/lib/gcc/7/ -add_rpath @loader_path/. -id @rpath/libgcc_s.1.dylib /usr/local/lib/gcc/7/libgcc_s.1.dylib
sudo install_name_tool -change /usr/local/Cellar/gcc@7/7.5.0_2/lib/gcc/7/libquadmath.0.dylib @rpath/libquadmath.0.dylib /usr/local/lib/gcc/7/libgfortran.4.dylib
sudo install_name_tool -change /usr/local/Cellar/gcc@7/7.5.0_3/lib/gcc/7/libquadmath.0.dylib @rpath/libquadmath.0.dylib /usr/local/lib/gcc/7/libgfortran.4.dylib
sudo install_name_tool -change /usr/local/lib/gcc/7/libgcc_s.1.dylib @rpath/libgcc_s.1.dylib /usr/local/lib/gcc/7/libgomp.1.dylib
sudo install_name_tool -change /usr/local/lib/gcc/7/libgcc_s.1.dylib @rpath/libgcc_s.1.dylib /usr/local/lib/gcc/7/libstdc++.6.dylib
sudo install_name_tool -change /usr/local/lib/gcc/7/libgcc_s.1.dylib @rpath/libgcc_s.1.dylib /usr/local/lib/gcc/7/libgfortran.4.dylib
sudo install_name_tool -change /usr/local/lib/gcc/7/libgcc_s.1.dylib @rpath/libgcc_s.1.dylib /usr/local/lib/gcc/7/libquadmath.0.dylib
fi
sudo install_name_tool -add_rpath @loader_path/. -id @rpath/libomp.dylib /usr/local/opt/libomp/lib/libomp.dylib
sudo install_name_tool -add_rpath @loader_path/. -id @rpath/libSDL-1.2.0.dylib /usr/local/opt/sdl/lib/libSDL-1.2.0.dylib
sudo install_name_tool -add_rpath @loader_path/. -id @rpath/libusb-1.0.0.dylib /usr/local/opt/libusb/lib/libusb-1.0.0.dylib
python3 -m pip install gdown || python3 -m pip install gdown
if [[ -n ${CI_DEPLOY_NEED_BAZEL:-} ]]; then
echo Installing Bazel
curl -LO https://github.com/bazelbuild/bazel/releases/download/0.25.3/bazel-0.25.3-installer-darwin-x86_64.sh
sudo bash bazel-0.25.3-installer-darwin-x86_64.sh
fi
if [[ "$CI_DEPLOY_MODULE" == "mkl" ]]; then
echo Installing MKL
curl -LO https://registrationcenter-download.intel.com/akdlm/irc_nas/17578/m_onemkl_p_2021.2.0.269_offline.dmg
hdiutil mount m_onemkl_p_2021.2.0.269_offline.dmg
sudo /Volumes/m_onemkl_p_2021.2.0.269_offline/bootstrapper.app/Contents/MacOS/install.sh -s -a -s --eula accept
fi
GRADLE_TASK=publishToMavenLocal
MAVEN_PHASE=install
if [[ -n ${CI_DEPLOY_USERNAME:-} ]] && [[ ! "$GITHUB_EVENT_NAME" == "pull_request" ]]; then
GRADLE_TASK=publish
MAVEN_PHASE=deploy
if [[ "${{ github.event.head_commit.message }}" == Release* ]] || [[ "${GITHUB_REF#refs/heads/}" == "release" ]]; then
python3 -m gdown.cli -q -O settings.tar.gz https://drive.google.com/uc?id=$CI_DEPLOY_SETTINGS
tar -xzf settings.tar.gz
MAVEN_OPTIONS="$MAVEN_OPTIONS -Dgpg.homedir=$(pwd)/.gnupg/ -DperformRelease -DstagingRepositoryId=$STAGING_REPOSITORY"
fi
fi
echo "GPG_PASSPHRASE=***" >> $GITHUB_ENV
echo "GRADLE_TASK=$GRADLE_TASK" >> $GITHUB_ENV
echo "MAVEN_PHASE=$MAVEN_PHASE" >> $GITHUB_ENV
echo "MAVEN_OPTIONS=$MAVEN_OPTIONS" >> $GITHUB_ENV
- name: Build project
shell: bash
run: |
git --version
clang --version
/usr/local/bin/gcc-? --version
cmake --version
gradle --version
mvn -version
gpg --version
python3 --version
df -h
export MAKEJ=$(getconf _NPROCESSORS_ONLN)
echo Fetching $GITHUB_REPOSITORY@$GITHUB_SHA
git init
git fetch --depth 1 https://github.com/$GITHUB_REPOSITORY $GITHUB_SHA
git checkout $GITHUB_SHA
git submodule update --init --recursive
git submodule foreach --recursive 'git reset --hard'
if [[ -n ${CI_DEPLOY_NEED_GRADLE:-} ]]; then
echo Executing Gradle $GRADLE_TASK ${{ matrix.options }} on $MAKEJ processors
export GRADLE_OPTIONS="-Dorg.gradle.jvmargs=-Xmx2048m -PjavacppPlatform=$CI_DEPLOY_PLATFORM -PjavacppPlatformExtension=${{ matrix.ext }} ${{ matrix.options }} --info"
gradle clean build $GRADLE_OPTIONS -b $CI_DEPLOY_MODULE/build.gradle
echo Publishing only now to help avoid race conditions with Gradle
gradle $GRADLE_TASK $GRADLE_OPTIONS -b $CI_DEPLOY_MODULE/build.gradle --refresh-dependencies
else
mkdir -p $HOME/.m2
echo "<settings>" > $HOME/.m2/settings.xml
echo "<mirrors><mirror><id>google-maven-central</id><name>GCS Maven Central mirror</name><url>https://maven-central.storage-download.googleapis.com/maven2/</url><mirrorOf>central</mirrorOf></mirror></mirrors>" >> $HOME/.m2/settings.xml
echo "<servers><server><id>sonatype-nexus-snapshots</id><username>$CI_DEPLOY_USERNAME</username><password>$CI_DEPLOY_PASSWORD</password></server><server><id>sonatype-nexus-staging</id><username>$CI_DEPLOY_USERNAME</username><password>$CI_DEPLOY_PASSWORD</password></server></servers>" >> $HOME/.m2/settings.xml
echo "</settings>" >> $HOME/.m2/settings.xml
SECONDS=$(( RANDOM % 300 ))
echo Sleeping $SECONDS seconds to help avoid race conditions with Maven
sleep $SECONDS
echo Executing Maven $MAVEN_PHASE on $MAKEJ processors
export EXT=${{ matrix.ext }}
export EXT2=${EXT:1}
export MAVEN_OPTS="-Xss2m"
export MAVEN_OPTIONS="clean $MAVEN_PHASE -B -U -e -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.count=3 -Djavacpp.platform=$CI_DEPLOY_PLATFORM -Djavacpp.platform.extension=$EXT $MAVEN_OPTIONS"
for i in {1..5}; do STATUS=0; mvn $MAVEN_OPTIONS -pl .,$CI_DEPLOY_MODULE && break || STATUS=$? && sleep 60; done; (exit $STATUS)
for i in {1..5}; do STATUS=0; mvn $MAVEN_OPTIONS -f $CI_DEPLOY_MODULE/platform/$EXT2/pom.xml && break || STATUS=$? && sleep 60; done; (exit $STATUS)
if [[ -e $CI_DEPLOY_MODULE/platform/redist/pom.xml ]]; then
for i in {1..5}; do STATUS=0; mvn $MAVEN_OPTIONS -f $CI_DEPLOY_MODULE/platform/redist/pom.xml && break || STATUS=$? && sleep 60; done; (exit $STATUS)
fi
fi
df -h
- name: Clean up
shell: bash
run: |
cd $HOME
rm -Rf $(find .m2/repository/ -name '*SNAPSHOT*')
name: Deploy on Mac OS X
runs:
using: composite
steps:
- name: Install environment
shell: bash
run: |
cd $HOME
export MACOSX_DEPLOYMENT_TARGET=10.13
echo "MACOSX_DEPLOYMENT_TARGET=$MACOSX_DEPLOYMENT_TARGET" >> $GITHUB_ENV
brew install boost ccache gcc swig autoconf-archive automake cmake libomp libtool libusb ant maven nasm xz pkg-config sdl gpg1 bison flex perl ragel binutils gradle gmp isl libmpc mpfr geoip pcre ssdeep yajl
if [[ -n ${CI_DEPLOY_NEED_GCC:-} ]]; then
brew uninstall gcc@8 gcc@9 gcc@10
brew install gcc@7
brew link --overwrite gcc@7
echo Removing "fixed" header files that are actually broken
sudo rm -Rf $(find /usr/local/Cellar/gcc@7/ -iname include-fixed)
echo Fixing up some binaries to support rpath
sudo install_name_tool -add_rpath /usr/local/lib/gcc/7/ -add_rpath @loader_path/. -id @rpath/libgomp.1.dylib /usr/local/lib/gcc/7/libgomp.1.dylib
sudo install_name_tool -add_rpath /usr/local/lib/gcc/7/ -add_rpath @loader_path/. -id @rpath/libstdc++.6.dylib /usr/local/lib/gcc/7/libstdc++.6.dylib
sudo install_name_tool -add_rpath /usr/local/lib/gcc/7/ -add_rpath @loader_path/. -id @rpath/libgfortran.4.dylib /usr/local/lib/gcc/7/libgfortran.4.dylib
sudo install_name_tool -add_rpath /usr/local/lib/gcc/7/ -add_rpath @loader_path/. -id @rpath/libquadmath.0.dylib /usr/local/lib/gcc/7/libquadmath.0.dylib
sudo install_name_tool -add_rpath /usr/local/lib/gcc/7/ -add_rpath @loader_path/. -id @rpath/libgcc_s.1.dylib /usr/local/lib/gcc/7/libgcc_s.1.dylib
sudo install_name_tool -change /usr/local/Cellar/gcc@7/7.5.0_2/lib/gcc/7/libquadmath.0.dylib @rpath/libquadmath.0.dylib /usr/local/lib/gcc/7/libgfortran.4.dylib
sudo install_name_tool -change /usr/local/Cellar/gcc@7/7.5.0_3/lib/gcc/7/libquadmath.0.dylib @rpath/libquadmath.0.dylib /usr/local/lib/gcc/7/libgfortran.4.dylib
sudo install_name_tool -change /usr/local/lib/gcc/7/libgcc_s.1.dylib @rpath/libgcc_s.1.dylib /usr/local/lib/gcc/7/libgomp.1.dylib
sudo install_name_tool -change /usr/local/lib/gcc/7/libgcc_s.1.dylib @rpath/libgcc_s.1.dylib /usr/local/lib/gcc/7/libstdc++.6.dylib
sudo install_name_tool -change /usr/local/lib/gcc/7/libgcc_s.1.dylib @rpath/libgcc_s.1.dylib /usr/local/lib/gcc/7/libgfortran.4.dylib
sudo install_name_tool -change /usr/local/lib/gcc/7/libgcc_s.1.dylib @rpath/libgcc_s.1.dylib /usr/local/lib/gcc/7/libquadmath.0.dylib
fi
sudo install_name_tool -add_rpath @loader_path/. -id @rpath/libomp.dylib /usr/local/opt/libomp/lib/libomp.dylib
sudo install_name_tool -add_rpath @loader_path/. -id @rpath/libSDL-1.2.0.dylib /usr/local/opt/sdl/lib/libSDL-1.2.0.dylib
sudo install_name_tool -add_rpath @loader_path/. -id @rpath/libusb-1.0.0.dylib /usr/local/opt/libusb/lib/libusb-1.0.0.dylib
python3 -m pip install gdown || python3 -m pip install gdown
if [[ -n ${CI_DEPLOY_NEED_BAZEL:-} ]]; then
echo Installing Bazel
curl -LO https://github.com/bazelbuild/bazel/releases/download/0.25.3/bazel-0.25.3-installer-darwin-x86_64.sh
sudo bash bazel-0.25.3-installer-darwin-x86_64.sh
fi
if [[ "$CI_DEPLOY_MODULE" == "mkl" ]]; then
echo Installing MKL
curl -LO https://registrationcenter-download.intel.com/akdlm/irc_nas/17578/m_onemkl_p_2021.2.0.269_offline.dmg
hdiutil mount m_onemkl_p_2021.2.0.269_offline.dmg
sudo /Volumes/m_onemkl_p_2021.2.0.269_offline/bootstrapper.app/Contents/MacOS/install.sh -s -a -s --eula accept
fi
GRADLE_TASK=publishToMavenLocal
MAVEN_PHASE=install
if [[ -n ${CI_DEPLOY_USERNAME:-} ]] && [[ ! "$GITHUB_EVENT_NAME" == "pull_request" ]]; then
GRADLE_TASK=publish
MAVEN_PHASE=deploy
if [[ "${{ github.event.head_commit.message }}" == Release* ]] || [[ "${GITHUB_REF#refs/heads/}" == "release" ]]; then
python3 -m gdown.cli -q -O settings.tar.gz https://drive.google.com/uc?id=$CI_DEPLOY_SETTINGS
tar -xzf settings.tar.gz
MAVEN_OPTIONS="$MAVEN_OPTIONS -Dgpg.homedir=$(pwd)/.gnupg/ -DperformRelease -DstagingRepositoryId=$STAGING_REPOSITORY"
fi
fi
echo "GPG_PASSPHRASE=***" >> $GITHUB_ENV
echo "GRADLE_TASK=$GRADLE_TASK" >> $GITHUB_ENV
echo "MAVEN_PHASE=$MAVEN_PHASE" >> $GITHUB_ENV
echo "MAVEN_OPTIONS=$MAVEN_OPTIONS" >> $GITHUB_ENV
- name: Build project
shell: bash
run: |
git --version
clang --version
/usr/local/bin/gcc-? --version
cmake --version
gradle --version
mvn -version
gpg --version
python3 --version
df -h
export MAKEJ=$(getconf _NPROCESSORS_ONLN)
echo Fetching $GITHUB_REPOSITORY@$GITHUB_SHA
git init
git fetch --depth 1 https://github.com/$GITHUB_REPOSITORY $GITHUB_SHA
git checkout $GITHUB_SHA
git submodule update --init --recursive
git submodule foreach --recursive 'git reset --hard'
if [[ -n ${CI_DEPLOY_NEED_GRADLE:-} ]]; then
echo Executing Gradle $GRADLE_TASK ${{ matrix.options }} on $MAKEJ processors
export GRADLE_OPTIONS="-Dorg.gradle.jvmargs=-Xmx2048m -PjavacppPlatform=$CI_DEPLOY_PLATFORM -PjavacppPlatformExtension=${{ matrix.ext }} ${{ matrix.options }} --info"
gradle clean build $GRADLE_OPTIONS -b $CI_DEPLOY_MODULE/build.gradle
echo Publishing only now to help avoid race conditions with Gradle
gradle $GRADLE_TASK $GRADLE_OPTIONS -b $CI_DEPLOY_MODULE/build.gradle --refresh-dependencies
else
mkdir -p $HOME/.m2
echo "<settings>" > $HOME/.m2/settings.xml
echo "<mirrors><mirror><id>google-maven-central</id><name>GCS Maven Central mirror</name><url>https://maven-central.storage-download.googleapis.com/maven2/</url><mirrorOf>central</mirrorOf></mirror></mirrors>" >> $HOME/.m2/settings.xml
echo "<servers><server><id>sonatype-nexus-snapshots</id><username>$CI_DEPLOY_USERNAME</username><password>$CI_DEPLOY_PASSWORD</password></server><server><id>sonatype-nexus-staging</id><username>$CI_DEPLOY_USERNAME</username><password>$CI_DEPLOY_PASSWORD</password></server></servers>" >> $HOME/.m2/settings.xml
echo "</settings>" >> $HOME/.m2/settings.xml
SECONDS=$(( RANDOM % 300 ))
echo Sleeping $SECONDS seconds to help avoid race conditions with Maven
sleep $SECONDS
echo Executing Maven $MAVEN_PHASE on $MAKEJ processors
export EXT=${{ matrix.ext }}
export EXT2=${EXT:1}
export MAVEN_OPTS="-Xss2m"
export MAVEN_OPTIONS="clean $MAVEN_PHASE -B -U -e -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.count=3 -Djavacpp.platform=$CI_DEPLOY_PLATFORM -Djavacpp.platform.extension=$EXT $MAVEN_OPTIONS"
for i in {1..5}; do STATUS=0; mvn $MAVEN_OPTIONS -pl .,$CI_DEPLOY_MODULE && break || STATUS=$? && sleep 60; done; (exit $STATUS)
for i in {1..5}; do STATUS=0; mvn $MAVEN_OPTIONS -f $CI_DEPLOY_MODULE/platform/$EXT2/pom.xml && break || STATUS=$? && sleep 60; done; (exit $STATUS)
if [[ -e $CI_DEPLOY_MODULE/platform/redist/pom.xml ]]; then
for i in {1..5}; do STATUS=0; mvn $MAVEN_OPTIONS -f $CI_DEPLOY_MODULE/platform/redist/pom.xml && break || STATUS=$? && sleep 60; done; (exit $STATUS)
fi
fi
df -h
- name: Clean up
shell: bash
run: |
cd $HOME
rm -Rf $(find .m2/repository/ -name '*SNAPSHOT*')
Loading

0 comments on commit 02341d2

Please sign in to comment.