mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Ignore usage of AVX512 and force AVX2 CPU instructions for better binaries' portability. (#580)
* build storage-daemon and storage-daemon-cli binaries
* build storage-daemon and storage-daemon-cli binaries
* build storage-daemon and storage-daemon-cli binaries
* build storage-daemon and storage-daemon-cli binaries
* build storage-daemon and storage-daemon-cli binaries
* build storage-daemon and storage-daemon-cli binaries
* build storage-daemon and storage-daemon-cli binaries
* build storage-daemon and storage-daemon-cli binaries
* build storage-daemon and storage-daemon-cli binaries
* build storage-daemon and storage-daemon-cli binaries
* build storage-daemon and storage-daemon-cli binaries
* build storage-daemon and storage-daemon-cli binaries
* force GSL 2.7.1 version
* force GSL 2.7.1 version
* handle missing BLAS library
* handle missing BLAS library, force GSL 2.7.1 version, build storage-daemon and storage-daemon-cli binaries
* Revert "handle missing BLAS library"
This reverts commit 67ebd4abfa
.
* remove GSL
* remove GSL only for 18.04
* remove GSL only for 18.04
* link blas library; leave gsl
* merge upstream
* make more portable binaries by excluding AVX512 CPU flag
* make rocksdb to produce portable binaries
* make rocksdb to produce portable binaries
* make rocksdb to produce portable binaries
* show OS CPU flags & force AVX2
* DPORTABLE=1 and -DTON_ARCH=
* DPORTABLE=1 and -DTON_ARCH= and -DCMAKE_CXX_FLAGS="-mavx2"
* DPORTABLE=1 and -DTON_ARCH= and -DCMAKE_CXX_FLAGS="-mavx2"
* DPORTABLE=1 and -DCMAKE_CXX_FLAGS="-mavx2" only
* Ignore usage of AVX512 and force AVX2 CPU instructions for better binaries portability.
* Ignore usage of AVX512 and force AVX2 CPU instructions for better binaries' portability.
* minor fix
This commit is contained in:
parent
ebde4e022e
commit
446b9f536f
10 changed files with 17 additions and 13 deletions
2
.github/script/amd64-18.04.Dockerfile
vendored
2
.github/script/amd64-18.04.Dockerfile
vendored
|
@ -15,5 +15,5 @@ WORKDIR /ton/build
|
|||
ENV CC clang
|
||||
ENV CXX clang++
|
||||
ENV CCACHE_DISABLE 1
|
||||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
|
||||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= -DCMAKE_CXX_FLAGS="-mavx2" ..
|
||||
RUN ninja storage-daemon storage-daemon-cli tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server lite-client
|
2
.github/script/amd64-20.04.Dockerfile
vendored
2
.github/script/amd64-20.04.Dockerfile
vendored
|
@ -15,5 +15,5 @@ WORKDIR /ton/build
|
|||
ENV CC clang
|
||||
ENV CXX clang++
|
||||
ENV CCACHE_DISABLE 1
|
||||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
|
||||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= -DCMAKE_CXX_FLAGS="-mavx2" ..
|
||||
RUN ninja storage-daemon storage-daemon-cli tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server lite-client
|
2
.github/script/amd64-22.04.Dockerfile
vendored
2
.github/script/amd64-22.04.Dockerfile
vendored
|
@ -15,5 +15,5 @@ WORKDIR /ton/build
|
|||
ENV CC clang
|
||||
ENV CXX clang++
|
||||
ENV CCACHE_DISABLE 1
|
||||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
|
||||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= -DCMAKE_CXX_FLAGS="-mavx2" ..
|
||||
RUN ninja storage-daemon storage-daemon-cli tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server lite-client
|
2
.github/script/arm64-18.04.Dockerfile
vendored
2
.github/script/arm64-18.04.Dockerfile
vendored
|
@ -15,5 +15,5 @@ WORKDIR /ton/build
|
|||
ENV CC clang
|
||||
ENV CXX clang++
|
||||
ENV CCACHE_DISABLE 1
|
||||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DTON_ARCH= ..
|
||||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= -DCMAKE_CXX_FLAGS="-mavx2" ..
|
||||
RUN ninja storage-daemon storage-daemon-cli tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id dht-server lite-client
|
2
.github/script/arm64-20.04.Dockerfile
vendored
2
.github/script/arm64-20.04.Dockerfile
vendored
|
@ -15,5 +15,5 @@ WORKDIR /ton/build
|
|||
ENV CC clang
|
||||
ENV CXX clang++
|
||||
ENV CCACHE_DISABLE 1
|
||||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DTON_ARCH= ..
|
||||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= -DCMAKE_CXX_FLAGS="-mavx2" ..
|
||||
RUN ninja storage-daemon storage-daemon-cli tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id dht-server lite-client
|
2
.github/script/arm64-22.04.Dockerfile
vendored
2
.github/script/arm64-22.04.Dockerfile
vendored
|
@ -15,5 +15,5 @@ WORKDIR /ton/build
|
|||
ENV CC clang
|
||||
ENV CXX clang++
|
||||
ENV CCACHE_DISABLE 1
|
||||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DTON_ARCH= ..
|
||||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= -DCMAKE_CXX_FLAGS="-mavx2" ..
|
||||
RUN ninja storage-daemon storage-daemon-cli tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id dht-server lite-client
|
4
.github/workflows/docker-compile-ubuntu.yml
vendored
4
.github/workflows/docker-compile-ubuntu.yml
vendored
|
@ -22,10 +22,6 @@ jobs:
|
|||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Show branch
|
||||
run: |
|
||||
echo branch ${GITHUB_REF##*/}
|
||||
|
||||
- name: Set output
|
||||
id: vars
|
||||
run: echo ::set-output name=short_ref::${GITHUB_REF#refs/*/}
|
||||
|
|
6
.github/workflows/ubuntu-18.04-compile.yml
vendored
6
.github/workflows/ubuntu-18.04-compile.yml
vendored
|
@ -18,6 +18,10 @@ jobs:
|
|||
sudo apt update
|
||||
sudo apt install -y build-essential git make cmake clang libgflags-dev zlib1g-dev libssl-dev libreadline-dev libmicrohttpd-dev pkg-config libgsl-dev python3 python3-dev ninja-build
|
||||
|
||||
- name: Show CPU flags
|
||||
run: |
|
||||
cat /proc/cpuinfo
|
||||
|
||||
- name: Configure & Build
|
||||
run: |
|
||||
export CC=$(which clang)
|
||||
|
@ -25,7 +29,7 @@ jobs:
|
|||
export CCACHE_DISABLE=1
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
|
||||
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= -DCMAKE_CXX_FLAGS="-mavx2" ..
|
||||
ninja storage-daemon storage-daemon-cli fift func tonlib tonlibjson tonlib-cli validator-engine lite-client pow-miner validator-engine-console generate-random-id json2tlo dht-server http-proxy rldp-http-proxy adnl-proxy create-state
|
||||
|
||||
- name: Find & copy binaries
|
||||
|
|
6
.github/workflows/ubuntu-compile.yml
vendored
6
.github/workflows/ubuntu-compile.yml
vendored
|
@ -21,6 +21,10 @@ jobs:
|
|||
sudo apt update
|
||||
sudo apt install -y build-essential git make cmake clang libgflags-dev zlib1g-dev libssl-dev libreadline-dev libmicrohttpd-dev pkg-config libgsl-dev python3 python3-dev ninja-build
|
||||
|
||||
- name: Show CPU flags
|
||||
run: |
|
||||
cat /proc/cpuinfo
|
||||
|
||||
- name: Configure & Build
|
||||
run: |
|
||||
export CC=$(which clang)
|
||||
|
@ -28,7 +32,7 @@ jobs:
|
|||
export CCACHE_DISABLE=1
|
||||
mkdir build-${{ matrix.os }}
|
||||
cd build-${{ matrix.os }}
|
||||
cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
|
||||
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= -DCMAKE_CXX_FLAGS="-mavx2" ..
|
||||
ninja storage-daemon storage-daemon-cli fift func tonlib tonlibjson tonlib-cli validator-engine lite-client pow-miner validator-engine-console generate-random-id json2tlo dht-server http-proxy rldp-http-proxy adnl-proxy create-state create-hardfork
|
||||
|
||||
- name: Find & copy binaries
|
||||
|
|
|
@ -11,7 +11,7 @@ WORKDIR /ton
|
|||
|
||||
RUN mkdir build && \
|
||||
cd build && \
|
||||
cmake -GNinja -DCMAKE_BUILD_TYPE=Release .. && \
|
||||
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= -DCMAKE_CXX_FLAGS="-mavx2" .. && \
|
||||
ninja storage-daemon storage-daemon-cli tonlibjson fift func validator-engine validator-engine-console generate-random-id dht-server lite-client
|
||||
|
||||
FROM ubuntu:20.04
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue