misc: fix dangling pointer in printf_buffer #1
This file contains 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 / GPU CUDA tests | |
permissions: | |
contents: read | |
on: | |
push: | |
workflow_dispatch: | |
pull_request: | |
paths-ignore: | |
- 'doc/**' | |
- 'CHANGES' | |
- 'COPYING' | |
- 'CREDITS' | |
- 'LICENSE' | |
- 'README.*' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref || github.run_id }} | |
cancel-in-progress: true | |
env: | |
CCACHE_BASEDIR: "${{ github.workspace }}" | |
CCACHE_DIR: "${{ github.workspace }}/../../../../ccache_storage" | |
EXAMPLES_DIR: "${{ github.workspace }}/../../../../examples" | |
jobs: | |
cuda_matrix: | |
name: LLVM ${{ matrix.llvm }} - ${{ matrix.config }} | |
runs-on: [self-hosted, linux, x64, cuda] | |
strategy: | |
fail-fast: false | |
matrix: | |
llvm: [17, 18] | |
config: [cuda] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- 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 -march=native -Wall -Wextra -Wno-unused-parameter -Wno-unused-variable" | |
cmake -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DDEVELOPER_MODE=ON \ | |
-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 ${{ github.workspace }}/build ${{ github.workspace }} | |
} | |
rm -rf ${{ github.workspace }}/build | |
mkdir ${{ github.workspace }}/build | |
runCMake -DENABLE_CUDA=ON | |
- name: Run Build | |
id: build | |
run: | | |
cd ${{ github.workspace }}/build && make -j$(nproc) | |
- 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 ${{ github.workspace }}/build && ${{ github.workspace }}/tools/scripts/run_cuda_tests $CTEST_FLAGS | |