Skip to content

Commit 81c0c3c

Browse files
[CI] Update get_system_info script
to include more info, e.g., for testing CUDA provider; More info is based on what is set in UR workflows.
1 parent 4c21ebc commit 81c0c3c

File tree

1 file changed

+25
-21
lines changed

1 file changed

+25
-21
lines changed

.github/scripts/get_system_info.sh

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Copyright (C) 2024 Intel Corporation
2+
# Copyright (C) 2024-2025 Intel Corporation
33
# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
44
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
55

@@ -26,32 +26,32 @@ function system_info {
2626
cat /etc/os-release | grep -oP "PRETTY_NAME=\K.*"
2727
cat /proc/version
2828

29-
# echo "**********SYCL-LS**********"
30-
# source /opt/intel/oneapi/setvars.sh
31-
# sycl-ls
29+
echo "**********SYCL-LS**********"
30+
source /opt/intel/oneapi/setvars.sh
31+
sycl-ls
3232

3333
echo "**********numactl topology**********"
3434
numactl -H
3535

3636
echo "**********VGA info**********"
3737
lspci | grep -i VGA
3838

39-
# echo "**********CUDA Version**********"
40-
# if command -v nvidia-smi &> /dev/null; then
41-
# nvidia-smi
42-
# else
43-
# echo "CUDA not installed"
44-
# fi
39+
echo "**********CUDA Version**********"
40+
if command -v nvidia-smi &> /dev/null; then
41+
nvidia-smi
42+
else
43+
echo "CUDA not installed"
44+
fi
4545

4646
echo "**********L0 Version**********"
4747
check_L0_version
4848

49-
# echo "**********ROCm Version**********"
50-
# if command -v rocminfo &> /dev/null; then
51-
# rocminfo
52-
# else
53-
# echo "ROCm not installed"
54-
# fi
49+
echo "**********ROCm Version**********"
50+
if command -v rocminfo &> /dev/null; then
51+
rocminfo
52+
else
53+
echo "ROCm not installed"
54+
fi
5555

5656
echo "******OpenCL*******"
5757
# The driver version of OpenCL Graphics is the compute-runtime version
@@ -67,11 +67,15 @@ function system_info {
6767
cat /proc/meminfo
6868

6969
echo "**********env variables**********"
70-
echo "PATH=${PATH}"
71-
echo "CPATH=${CPATH}"
72-
echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}"
73-
echo "LIBRARY_PATH=${LIBRARY_PATH}"
74-
echo "PKG_CONFIG_PATH=${PKG_CONFIG_PATH}"
70+
echo "PATH=$PATH"
71+
echo
72+
echo "CPATH=$CPATH"
73+
echo
74+
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
75+
echo
76+
echo "LIBRARY_PATH=$LIBRARY_PATH"
77+
echo
78+
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH"
7579
echo
7680

7781
echo "******build tools versions*******"

0 commit comments

Comments
 (0)