Skip to content

Commit e7631b7

Browse files
[CI] Adapt and use 'get_system_info.sh'
Adapt the script for the UMF and use it in the HW-related workflow.
1 parent 3147ecf commit e7631b7

File tree

2 files changed

+48
-34
lines changed

2 files changed

+48
-34
lines changed

.github/scripts/get_system_info.sh

Lines changed: 44 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -25,56 +25,66 @@ function system_info {
2525
echo "**********system_info**********"
2626
cat /etc/os-release | grep -oP "PRETTY_NAME=\K.*"
2727
cat /proc/version
28-
echo "**********SYCL-LS**********"
29-
source /opt/intel/oneapi/setvars.sh
30-
sycl-ls
31-
echo "**********VGA**********"
32-
lspci | grep VGA
33-
echo "**********CUDA Version**********"
34-
if command -v nvidia-smi &> /dev/null; then
35-
nvidia-smi
36-
else
37-
echo "CUDA not installed"
38-
fi
28+
29+
# echo "**********SYCL-LS**********"
30+
# source /opt/intel/oneapi/setvars.sh
31+
# sycl-ls
32+
33+
echo "**********VGA info**********"
34+
lspci | grep -i VGA
35+
36+
# echo "**********CUDA Version**********"
37+
# if command -v nvidia-smi &> /dev/null; then
38+
# nvidia-smi
39+
# else
40+
# echo "CUDA not installed"
41+
# fi
42+
3943
echo "**********L0 Version**********"
4044
check_L0_version
41-
echo "**********ROCm Version**********"
42-
if command -v rocminfo &> /dev/null; then
43-
rocminfo
44-
else
45-
echo "ROCm not installed"
46-
fi
45+
46+
# echo "**********ROCm Version**********"
47+
# if command -v rocminfo &> /dev/null; then
48+
# rocminfo
49+
# else
50+
# echo "ROCm not installed"
51+
# fi
52+
53+
echo "******OpenCL*******"
54+
# The driver version of OpenCL Graphics is the compute-runtime version
55+
clinfo || echo "OpenCL not installed"
56+
4757
echo "**********/proc/cmdline**********"
4858
cat /proc/cmdline
59+
4960
echo "**********CPU info**********"
5061
lscpu
62+
5163
echo "**********/proc/meminfo**********"
5264
cat /proc/meminfo
53-
echo "**********build/bin/urinfo**********"
54-
$(dirname "$(readlink -f "$0")")/../../build/bin/urinfo || true
55-
echo "******OpenCL*******"
56-
# The driver version of OpenCL Graphics is the compute-runtime version
57-
clinfo || echo "OpenCL not installed"
58-
echo "**********list-environment**********"
59-
echo "PATH=$PATH"
60-
echo
61-
echo "CPATH=$CPATH"
62-
echo
63-
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
64-
echo
65-
echo "LIBRARY_PATH=$LIBRARY_PATH"
66-
echo
67-
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH"
65+
66+
echo "**********env variables**********"
67+
echo "PATH=${PATH}"
68+
echo "CPATH=${CPATH}"
69+
echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}"
70+
echo "LIBRARY_PATH=${LIBRARY_PATH}"
71+
echo "PKG_CONFIG_PATH=${PKG_CONFIG_PATH}"
6872
echo
69-
echo "******list-build-system-versions*******"
73+
74+
echo "******build tools versions*******"
7075
gcc --version 2>/dev/null || true
7176
echo
7277
clang --version 2>/dev/null || true
7378
echo
7479
make --version 2>/dev/null || true
80+
echo
81+
cmake --version 2>/dev/null || true
82+
echo
83+
7584
echo "**********/proc/modules**********"
7685
cat /proc/modules
77-
echo "***************installed-packages***************"
86+
87+
echo "***************all installed packages***************"
7888
# Instructions below will return some minor errors, as they are dependent on the Linux distribution.
7989
zypper se --installed-only 2>/dev/null || true
8090
apt list --installed 2>/dev/null || true

.github/workflows/gpu.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ jobs:
2424
runs-on: [ "DSS-LEVEL_ZERO", "DSS-UBUNTU" ]
2525

2626
steps:
27+
- name: Get information about platform
28+
if: ${{ always() }}
29+
run: .github/scripts/get_system_info.sh
30+
2731
- name: Checkout
2832
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2933

0 commit comments

Comments
 (0)