mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-24 02:34:17 +08:00
c1e7e83d52
Our shared runners are set up for concurrent jobs ~= CPUs / 4 (x86) or 8 (ARM). If you use more build processes than that, then jobs may be fighting each other for shared system resources, possibly to the point of failure (we've seen one of the runners OOM on some jobs before, though I'm not sure if this was the cause). To try to systematically prevent the problem, we make a ninja wrapper in the containers that passes the -j flags, and set MAKEFLAGS in the container builds. This doesn't cover make in non-container builds, but I believe we don't have any of those. Reviewed-by: Michel Dänzer <mdaenzer@redhat.com> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3782> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3782>
20 lines
594 B
Bash
20 lines
594 B
Bash
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
# https://github.com/LunarG/gfxreconstruct/issues/328
|
|
GFXRECONSTRUCT_VERSION=b66cd392a84b226cb60ad9d4130ddeb58a1559cb
|
|
|
|
git clone https://github.com/LunarG/gfxreconstruct.git --single-branch --no-checkout /gfxreconstruct
|
|
pushd /gfxreconstruct
|
|
git checkout "$GFXRECONSTRUCT_VERSION"
|
|
git submodule update --init
|
|
git submodule update
|
|
cmake -G Ninja -B_build -H. -DCMAKE_BUILD_TYPE=Release
|
|
ninja -C _build gfxrecon-replay
|
|
mkdir -p build/bin
|
|
install _build/tools/replay/gfxrecon-replay build/bin
|
|
strip build/bin/*
|
|
find . -not -path './build' -not -path './build/*' -delete
|
|
popd
|