dropout:ompsimd+cuda (#45) #77
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Excuter/cppcommon Build | |
| on: [push, pull_request] | |
| env: | |
| HIGHWAY_VERSION: 1.2.0 | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04] # 只保留 Ubuntu | |
| backend: [ompsimd] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| # 系统依赖安装 | |
| - name: Install Dependencies (Ubuntu) | |
| if: matrix.os == 'ubuntu-22.04' | |
| env: | |
| DEBIAN_FRONTEND: noninteractive | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| build-essential \ | |
| cmake \ | |
| libopenblas-dev \ | |
| libyaml-cpp-dev \ | |
| libjemalloc-dev \ | |
| libgtest-dev \ | |
| clang \ | |
| git | |
| # 设置 ccache | |
| - name: Setup ccache | |
| uses: hendrikmuhs/ccache-action@v1.2 | |
| # 构建缓存 | |
| - name: Cache Build | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| excuter/cpp-common/build | |
| ~/.ccache | |
| key: ${{ runner.os }}-build-${{ hashFiles('**/CMakeLists.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-build- | |
| # 构建 cpp-common 库 | |
| - name: Build Common Library | |
| run: | | |
| cd excuter/cpp-common | |
| mkdir -p build && cd build | |
| cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER_LAUNCHER=ccache .. | |
| cmake --build . --config Release -j$(nproc) | |