Archived
docker: the test stage can leave entries out (TEST_EXCLUDE, build.sh -E)
Without perf_event_open in the build sandbox, tokenizer_perf_test bounds the encoder's linearity by CPU time. Its 500 KB single word reads a ratio of 10 to 12 against the threshold of 9 on a Zen 2 VM with 512 KiB of L2, every run, with the tokenizer unchanged. A ctest -E regex lets such a host build the image without the threshold moving for everyone. Empty by default. docs/DOCKER.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
748f63637e
commit
da1ffff9a8
3 files changed
+11
-1
No files matched your search
@@ -14,6 +14,7 @@
|
||||
# docker/build.sh -J 4 fewer tests at a time (default: the compile jobs)
|
||||
# docker/build.sh -B 5 multiply every test's CPU budget, for a host slower per
|
||||
# thread than the one the budgets were set on
|
||||
# docker/build.sh -E tokenizer_perf_test leave tests matching a regex out of the test stage
|
||||
# docker/build.sh --target build stop at a stage (tagged radiance-<stage>), e.g. for the
|
||||
# GPU test suites
|
||||
#
|
||||
@@ -27,6 +28,7 @@ TARGETS=gfx1201
|
||||
JOBS=
|
||||
TEST_JOBS=
|
||||
BUDGET_SCALE=
|
||||
TEST_EXCLUDE=
|
||||
STAGE=
|
||||
while [ $# -gt 0 ]; do
|
||||
case "$1" in
|
||||
@@ -36,6 +38,7 @@ while [ $# -gt 0 ]; do
|
||||
-j) shift; JOBS="$1" ;;
|
||||
-J) shift; TEST_JOBS="$1" ;;
|
||||
-B) shift; BUDGET_SCALE="$1" ;;
|
||||
-E) shift; TEST_EXCLUDE="$1" ;;
|
||||
--target) shift; STAGE="$1" ;;
|
||||
*) echo "docker/build.sh: unknown option $1" >&2; exit 2 ;;
|
||||
esac
|
||||
@@ -53,6 +56,7 @@ else
|
||||
fi
|
||||
CMD="docker buildx build --load --build-arg GPU_TARGETS='$TARGETS' --build-arg JOBS='$JOBS'"
|
||||
CMD="$CMD --build-arg TEST_JOBS='$TEST_JOBS' --build-arg TEST_CPU_BUDGET_SCALE='$BUDGET_SCALE'"
|
||||
CMD="$CMD --build-arg TEST_EXCLUDE='$TEST_EXCLUDE'"
|
||||
CMD="$CMD --build-arg VERSION='$VERSION' --build-arg REVISION='$SHA' $TAGS -"
|
||||
|
||||
echo "radiance $VERSION ($SHA) for $TARGETS${HOST:+ on $HOST}${STAGE:+, stage $STAGE}"
|
||||
|
||||
Reference in new issue
Block a user