From c7f8a087b40e4dbe44e9c842878b79aaca84dee0 Mon Sep 17 00:00:00 2001 From: "Shine.Wang" Date: Fri, 27 Dec 2024 14:22:35 +0800 Subject: [PATCH 1/4] small optimization --- .idea/.gitignore | 8 +++++++ .idea/inspectionProfiles/Project_Default.xml | 6 +++++ .../inspectionProfiles/profiles_settings.xml | 6 +++++ .idea/misc.xml | 7 ++++++ .idea/modules.xml | 8 +++++++ .idea/oec-hardware.iml | 23 +++++++++++++++++++ .idea/vcs.xml | 6 +++++ config/pci.ids | 2 ++ tests/compatible/gpu/test_nvidia_gpu.sh | 2 +- 9 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/oec-hardware.iml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..35410ca --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..03d9549 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..db8786c --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..e6eb0b6 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/oec-hardware.iml b/.idea/oec-hardware.iml new file mode 100644 index 0000000..8e229e3 --- /dev/null +++ b/.idea/oec-hardware.iml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/config/pci.ids b/config/pci.ids index 6eaafa5..2531894 100644 --- a/config/pci.ids +++ b/config/pci.ids @@ -22178,6 +22178,7 @@ 15b3 0069 MCX4121A-ACUT 15b3 009c MCX4121A-ACAT 193d 100a 620F-B + 19e5 d130 SP380 # NIC-ETH540F-LP-2P SFP+ Ethernet Card 193d 1023 NIC-ETH540F-LP-2P 193d 1031 NIC-ETH640i-Mb-2x25G @@ -22194,6 +22195,7 @@ 15b3 0121 MCX512A-ACUT 15b3 0160 MCX515A-CCUT 193d 1051 NIC-IB1040i-Mb-2P + 19e5 d120 SP350 19e5 d126 SP351 19e5 d135 SP382 1018 MT27800 Family [ConnectX-5 Virtual Function] diff --git a/tests/compatible/gpu/test_nvidia_gpu.sh b/tests/compatible/gpu/test_nvidia_gpu.sh index db5c5a2..8b61582 100644 --- a/tests/compatible/gpu/test_nvidia_gpu.sh +++ b/tests/compatible/gpu/test_nvidia_gpu.sh @@ -13,7 +13,7 @@ # Desc: Shell script used for testing nvidia gpu cuda_version=$(nvidia-smi -q | grep "CUDA Version" | awk '{print $4}') -cuda_name="cuda-samples-${cuda_version}" +cuda_name=$(ls /opt | grep cuda-samples) function install_clpeak() { cd /opt -- Gitee From 07a5a19efeefba9027e80778ff3199bee2c6f032 Mon Sep 17 00:00:00 2001 From: "Shine.Wang" Date: Fri, 27 Dec 2024 14:23:20 +0800 Subject: [PATCH 2/4] small optimization --- .idea/.gitignore | 8 ------- .idea/inspectionProfiles/Project_Default.xml | 6 ----- .../inspectionProfiles/profiles_settings.xml | 6 ----- .idea/misc.xml | 7 ------ .idea/modules.xml | 8 ------- .idea/oec-hardware.iml | 23 ------------------- .idea/vcs.xml | 6 ----- 7 files changed, 64 deletions(-) delete mode 100644 .idea/.gitignore delete mode 100644 .idea/inspectionProfiles/Project_Default.xml delete mode 100644 .idea/inspectionProfiles/profiles_settings.xml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/oec-hardware.iml delete mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 35410ca..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# 默认忽略的文件 -/shelf/ -/workspace.xml -# 基于编辑器的 HTTP 客户端请求 -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml deleted file mode 100644 index 03d9549..0000000 --- a/.idea/inspectionProfiles/Project_Default.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml deleted file mode 100644 index 105ce2d..0000000 --- a/.idea/inspectionProfiles/profiles_settings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index db8786c..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index e6eb0b6..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/oec-hardware.iml b/.idea/oec-hardware.iml deleted file mode 100644 index 8e229e3..0000000 --- a/.idea/oec-hardware.iml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1dd..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file -- Gitee From 3e1525113b3b4ae5932ab0e42e2103c4dea4a05a Mon Sep 17 00:00:00 2001 From: "Shine.Wang" Date: Fri, 27 Dec 2024 16:06:08 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E4=BC=98=E5=8C=96job=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E9=80=BB=E8=BE=91=EF=BC=8C=E4=BD=BF=E5=BE=97=E6=9D=BF=E5=8D=A1?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=A4=B1=E8=B4=A5=E6=97=B6=E4=B9=9F=E4=BC=9A?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E6=9D=BF=E5=8D=A1=E4=BF=A1=E6=81=AFjson?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwcompatible/job.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hwcompatible/job.py b/hwcompatible/job.py index 0dee24c..26b04d6 100755 --- a/hwcompatible/job.py +++ b/hwcompatible/job.py @@ -108,6 +108,9 @@ class Job(): if testcase["name"] not in NODEVICE: cert_infos.create_json(testcase["name"], testcase["device"]) else: + if testcase["name"] not in NODEVICE: + cert_infos.create_json(testcase["name"], testcase["device"]) + testcase["status"] = "FAIL" self.logger.error("Test %s failed." % testcase["name"], terminal_print=False) -- Gitee From 17c7a2975fc20e49808e2fe88753fc803eb8937c Mon Sep 17 00:00:00 2001 From: "Shine.Wang" Date: Mon, 30 Dec 2024 17:34:03 +0800 Subject: [PATCH 4/4] small optimaztion --- tests/compatible/gpu/test_nvidia_gpu.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/compatible/gpu/test_nvidia_gpu.sh b/tests/compatible/gpu/test_nvidia_gpu.sh index 8b61582..57429d0 100644 --- a/tests/compatible/gpu/test_nvidia_gpu.sh +++ b/tests/compatible/gpu/test_nvidia_gpu.sh @@ -61,11 +61,12 @@ function install_gpu_burn() { function install_cuda_samples() { cd /opt - if [ ! -d ${cuda_name} ]; then + if [ -z ${cuda_name} ]; then wget https://github.com/NVIDIA/cuda-samples/archive/refs/tags/v${cuda_version}.zip unzip v${cuda_version}.zip >/dev/null rm -rf v${cuda_version}.zip fi + cuda_name=$(ls /opt | grep cuda-samples) return 0 } -- Gitee