Skip to content

Commit

Permalink
Remove libavutils from the asan suppresion list
Browse files Browse the repository at this point in the history
Signed-off-by: Janusz Lisiecki <[email protected]>
  • Loading branch information
JanuszL committed Jan 16, 2025
1 parent e3c6204 commit 32fede2
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 2 deletions.
2 changes: 0 additions & 2 deletions qa/leak.sup
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ leak:numba
leak:libmxnet
leak:libtorch
leak:libc10
leak:av_realloc_f
leak:av_malloc
# tensorflow
leak:PyInit__pywrap_debug_events_writer
leak:_pywrap
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/bin/bash -ex

do_once() {
# generate file_list.txt for label testing
echo "${DALI_EXTRA_PATH}/db/video/frame_num_timestamp/test.mp4 0 0 99
${DALI_EXTRA_PATH}/db/video/frame_num_timestamp/test.mp4 1 100 199
${DALI_EXTRA_PATH}/db/video/frame_num_timestamp/test.mp4 2 200 256
" > /tmp/file_list.txt

echo "${DALI_EXTRA_PATH}/db/video/frame_num_timestamp/test_25fps.mp4 0 0 1
${DALI_EXTRA_PATH}/db/video/frame_num_timestamp/test_25fps.mp4 1 2 3
${DALI_EXTRA_PATH}/db/video/frame_num_timestamp/test_25fps.mp4 2 4 5
" > /tmp/file_list_timestamp.txt

echo "${DALI_EXTRA_PATH}/db/video/frame_num_timestamp/test_25fps.mp4 0 0 49
${DALI_EXTRA_PATH}/db/video/frame_num_timestamp/test_25fps.mp4 1 50 99
${DALI_EXTRA_PATH}/db/video/frame_num_timestamp/test_25fps.mp4 2 100 149
" > /tmp/file_list_frame_num.txt
}

test_body() {
for BINNAME in \
"dali_core_test.bin" \
"dali_kernel_test.bin" \
"dali_test.bin" \
"dali_operator_test.bin"
do
for DIRNAME in \
"../../build/dali/python/nvidia/dali" \
"$(python -c 'import os; from nvidia import dali; print(os.path.dirname(dali.__file__))' 2>/dev/null || echo '')"
do
if [ -x "$DIRNAME/test/$BINNAME" ]; then
FULLPATH="$DIRNAME/test/$BINNAME"
break
fi
done

if [[ -z "$FULLPATH" ]]; then
echo "ERROR: $BINNAME not found"
exit 1
fi

DALI_USE_EXEC2=0 "$FULLPATH"
done
}

pushd ../..
source ./qa/test_template.sh
popd

0 comments on commit 32fede2

Please sign in to comment.