Revert "enable FP16 regardless of ENABLE_HOST_CPU_VECTORIZE_BUILTINS"
#3
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: Linux / CPU RISC-V 64 tests | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| - 'release*' | |
| workflow_dispatch: | |
| pull_request: | |
| paths-ignore: | |
| - 'doc/**' | |
| - 'CHANGES' | |
| - 'COPYING' | |
| - 'CREDITS' | |
| - 'LICENSE' | |
| - 'README.*' | |
| - 'tools/docker/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref || github.run_id }} | |
| cancel-in-progress: true | |
| env: | |
| POCL_MAX_WORK_GROUP_SIZE: "1024" | |
| CCACHE_BASEDIR: "${{ github.workspace }}" | |
| CCACHE_DIR: "${{ github.workspace }}/../../../../ccache_storage" | |
| EXAMPLES_DIR: "${{ github.workspace }}/../../../../examples" | |
| BUILD_DIR: "${{ github.workspace }}/build" | |
| jobs: | |
| arm64_matrix: | |
| name: LLVM ${{ matrix.llvm }} - RISC-V 64 ${{ matrix.config }} | |
| runs-on: [self-hosted, linux, RISCV64] | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| llvm: [20] | |
| config: [basic] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
| - name: Load Env vars | |
| id: load-env | |
| run: | | |
| cat ${{ github.workspace }}/.github/variables.txt >> $GITHUB_ENV | |
| - name: Run CMake | |
| id: cmake | |
| run: | | |
| runCMake() { | |
| BUILD_FLAGS="-O1 -Wall -Wextra -Wno-unused-parameter -Wno-unused-variable" | |
| cmake -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DHOST_CPU_TARGET_ABI=lp64d -DLLC_HOST_CPU=sifive-u74 \ | |
| -DCMAKE_BUILD_TYPE=Release "-DCMAKE_C_FLAGS_RELEASE=$BUILD_FLAGS" "-DCMAKE_CXX_FLAGS_RELEASE=$BUILD_FLAGS" \ | |
| -DWITH_LLVM_CONFIG=/usr/bin/llvm-config-${{ matrix.llvm }} \ | |
| "$@" -B $BUILD_DIR ${{ github.workspace }} | |
| } | |
| rm -rf $BUILD_DIR | |
| mkdir -p $BUILD_DIR | |
| runCMake -DENABLE_ICD=1 | |
| - name: Run Build | |
| id: build | |
| run: | | |
| cd $BUILD_DIR && make -j$(${{ github.workspace }}/.github/scripts/get_cpus.sh) | |
| - name: Run Tests | |
| env: | |
| POCL_CACHE_DIR: "${{ runner.temp }}/GH_POCL_CACHE" | |
| id: ctest | |
| timeout-minutes: 120 | |
| run: | | |
| rm -rf ${{ env.POCL_CACHE_DIR }} | |
| mkdir ${{ env.POCL_CACHE_DIR }} | |
| cd $BUILD_DIR && ${{ github.workspace }}/tools/scripts/run_cpu_tests -j$(${{ github.workspace }}/.github/scripts/get_cpus.sh) $CTEST_FLAGS -LE 'long' |