From 18670623dde753d488c802a96b5023ba89e9ec2d Mon Sep 17 00:00:00 2001 From: anzhengqi Date: Thu, 11 Nov 2021 16:16:28 +0800 Subject: [PATCH] add command fuser to figure out the root cause of testcase failure --- tests/st/model_zoo_tests/resnet50/test_resnet50_cifar10.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/st/model_zoo_tests/resnet50/test_resnet50_cifar10.py b/tests/st/model_zoo_tests/resnet50/test_resnet50_cifar10.py index bfdaf82dd03..fc0a00264b9 100644 --- a/tests/st/model_zoo_tests/resnet50/test_resnet50_cifar10.py +++ b/tests/st/model_zoo_tests/resnet50/test_resnet50_cifar10.py @@ -66,6 +66,7 @@ def test_resnet50_cifar10_gpu(): dataset_path = os.path.join(utils.data_root, "cifar-10-batches-bin") config_path = os.path.join(cur_model_path, "config", "resnet50_cifar10_config.yaml") os.system("nvidia-smi") + os.system("fuser -v /dev/nvidia*") exec_network_shell = "cd resnet/scripts; sh run_distribute_train_gpu.sh {} {}" \ .format(dataset_path, config_path) logger.warning("cmd [{}] is running...".format(exec_network_shell))