Skip to content

Commit

Permalink
Turn off part of TL0_FW_iterators tests when sanitizers are enabled (N…
Browse files Browse the repository at this point in the history
…VIDIA#3456)

- as TL0_FW_iterators takes a very long time with sanitizers on trim
  it a bit by disabling the longest and least useful cases

Signed-off-by: Janusz Lisiecki <[email protected]>
  • Loading branch information
JanuszL authored Oct 28, 2021
1 parent e1d9d49 commit 7a09ab0
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 25 deletions.
15 changes: 9 additions & 6 deletions qa/TL0_FW_iterators/test_mxnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ do_once() {
}

test_body() {
for fw in "mxnet"; do
python test_RN50_data_fw_iterators.py --framework ${fw} --gpus ${NUM_GPUS} -b 13 \
--workers 3 --prefetch 2 -i 100 --epochs 2
python test_RN50_data_fw_iterators.py --framework ${fw} --gpus ${NUM_GPUS} -b 13 \
--workers 3 --prefetch 2 -i 2 --epochs 2 --fp16
done
# it takes very long time to run it with sanitizers on and provides little value so turn it off
if [ -z "$DALI_ENABLE_SANITIZERS" ]; then
for fw in "mxnet"; do
python test_RN50_data_fw_iterators.py --framework ${fw} --gpus ${NUM_GPUS} -b 13 \
--workers 3 --prefetch 2 -i 100 --epochs 2
python test_RN50_data_fw_iterators.py --framework ${fw} --gpus ${NUM_GPUS} -b 13 \
--workers 3 --prefetch 2 -i 2 --epochs 2 --fp16
done
fi
nosetests --verbose -m '(?:^|[\b_\./-])[Tt]est.*mxnet*' test_fw_iterators_detection.py
nosetests --verbose -m '(?:^|[\b_\./-])[Tt]est.*mxnet*' test_fw_iterators.py
nosetests --verbose -m '(?:^|[\b_\./-])[Tt]est.*gluon*' test_fw_iterators.py
Expand Down
17 changes: 10 additions & 7 deletions qa/TL0_FW_iterators/test_paddle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ do_once() {
}

test_body() {
for fw in "paddle"; do
python test_RN50_data_fw_iterators.py --framework ${fw} --gpus ${NUM_GPUS} -b 13 \
--workers 3 --prefetch 2 -i 100 --epochs 2
python test_RN50_data_fw_iterators.py --framework ${fw} --gpus ${NUM_GPUS} -b 13 \
--workers 3 --prefetch 2 -i 2 --epochs 2 --fp16
done
nosetests --verbose -m '(?:^|[\b_\./-])[Tt]est.*paddle*' test_fw_iterators_detection.py
# it takes very long time to run it with sanitizers on and provides little value so turn it off
if [ -z "$DALI_ENABLE_SANITIZERS" ]; then
for fw in "paddle"; do
python test_RN50_data_fw_iterators.py --framework ${fw} --gpus ${NUM_GPUS} -b 13 \
--workers 3 --prefetch 2 -i 100 --epochs 2
python test_RN50_data_fw_iterators.py --framework ${fw} --gpus ${NUM_GPUS} -b 13 \
--workers 3 --prefetch 2 -i 2 --epochs 2 --fp16
done
nosetests --verbose -m '(?:^|[\b_\./-])[Tt]est.*paddle*' test_fw_iterators_detection.py
fi
nosetests --verbose -m '(?:^|[\b_\./-])[Tt]est.*paddle*' test_fw_iterators.py
}

Expand Down
15 changes: 9 additions & 6 deletions qa/TL0_FW_iterators/test_pytorch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ do_once() {
}

test_body() {
for fw in "pytorch"; do
python test_RN50_data_fw_iterators.py --framework ${fw} --gpus ${NUM_GPUS} -b 13 \
--workers 3 --prefetch 2 -i 100 --epochs 2
python test_RN50_data_fw_iterators.py --framework ${fw} --gpus ${NUM_GPUS} -b 13 \
--workers 3 --prefetch 2 -i 2 --epochs 2 --fp16
done
# it takes very long time to run it with sanitizers on and provides little value so turn it off
if [ -z "$DALI_ENABLE_SANITIZERS" ]; then
for fw in "pytorch"; do
python test_RN50_data_fw_iterators.py --framework ${fw} --gpus ${NUM_GPUS} -b 13 \
--workers 3 --prefetch 2 -i 100 --epochs 2
python test_RN50_data_fw_iterators.py --framework ${fw} --gpus ${NUM_GPUS} -b 13 \
--workers 3 --prefetch 2 -i 2 --epochs 2 --fp16
done
fi
nosetests --verbose -m '(?:^|[\b_\./-])[Tt]est.*pytorch*' test_fw_iterators_detection.py
nosetests --verbose -m '(?:^|[\b_\./-])[Tt]est.*pytorch*' test_fw_iterators.py
}
Expand Down
15 changes: 9 additions & 6 deletions qa/TL0_FW_iterators/test_tf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ do_once() {
}

test_body() {
for fw in "tf"; do
python test_RN50_data_fw_iterators.py --framework ${fw} --gpus ${NUM_GPUS} -b 13 \
--workers 3 --prefetch 2 -i 100 --epochs 2
python test_RN50_data_fw_iterators.py --framework ${fw} --gpus ${NUM_GPUS} -b 13 \
--workers 3 --prefetch 2 -i 2 --epochs 2 --fp16
done
# it takes very long time to run it with sanitizers on and provides little value so turn it off
if [ -z "$DALI_ENABLE_SANITIZERS" ]; then
for fw in "tf"; do
python test_RN50_data_fw_iterators.py --framework ${fw} --gpus ${NUM_GPUS} -b 13 \
--workers 3 --prefetch 2 -i 100 --epochs 2
python test_RN50_data_fw_iterators.py --framework ${fw} --gpus ${NUM_GPUS} -b 13 \
--workers 3 --prefetch 2 -i 2 --epochs 2 --fp16
done
fi
}

pushd ../..
Expand Down

0 comments on commit 7a09ab0

Please sign in to comment.