-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall_intel_opencl_gpu.sh
More file actions
executable file
·99 lines (76 loc) · 3.17 KB
/
install_intel_opencl_gpu.sh
File metadata and controls
executable file
·99 lines (76 loc) · 3.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!/bin/bash
set -e
echo "========================================"
echo "Intel GPU OpenCL (NEO) SIMPLE Installer"
echo "========================================"
# ------------------------------------------------
# Check if already installed
# ------------------------------------------------
if command -v clinfo &>/dev/null && clinfo | grep -qi "Intel"; then
echo "Intel OpenCL already detected on this system."
echo "Nothing to do."
exit 0
fi
# ------------------------------------------------
# Create working directory
# ------------------------------------------------
mkdir -p neo
cd neo
# ------------------------------------------------
# Download ALL packages (exact Intel example)
# ------------------------------------------------
echo "Downloading packages..."
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.16510.2/intel-igc-core_1.0.16510.2_amd64.deb
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.16510.2/intel-igc-opencl_1.0.16510.2_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/24.13.29138.7/intel-level-zero-gpu-dbgsym_1.3.29138.7_amd64.ddeb
wget https://github.com/intel/compute-runtime/releases/download/24.13.29138.7/intel-level-zero-gpu_1.3.29138.7_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/24.13.29138.7/intel-opencl-icd-dbgsym_24.13.29138.7_amd64.ddeb
wget https://github.com/intel/compute-runtime/releases/download/24.13.29138.7/intel-opencl-icd_24.13.29138.7_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/24.13.29138.7/libigdgmm12_22.3.18_amd64.deb
# ------------------------------------------------
# Verify SHA256
# ------------------------------------------------
echo "Downloading checksum file..."
wget https://github.com/intel/compute-runtime/releases/download/24.13.29138.7/ww13.sum
echo "Verifying checksums..."
sha256sum -c ww13.sum
echo
echo "========================================"
echo "Downloads and checksum verification SUCCESS."
echo "========================================"
echo
# ------------------------------------------------
# Ask before installation
# ------------------------------------------------
read -p "Proceed with installation? (y/N): " CONFIRM
if [[ ! "$CONFIRM" =~ ^[Yy]$ ]]; then
echo "Installation cancelled."
exit 0
fi
# ------------------------------------------------
# Install
# ------------------------------------------------
sudo dpkg -i *.deb *.ddeb
sudo apt-get install -f -y
# ------------------------------------------------
# Ensure clinfo exists
# ------------------------------------------------
if ! command -v clinfo &>/dev/null; then
echo "clinfo not installed. Installing..."
sudo apt-get update
sudo apt-get install -y clinfo
fi
# ------------------------------------------------
# Verify installation
# ------------------------------------------------
echo
echo "========================================"
echo "Verifying OpenCL..."
echo "========================================"
if clinfo | grep -qi "Intel"; then
echo "SUCCESS: Intel OpenCL detected."
else
echo "WARNING: Intel OpenCL not detected."
fi
echo
echo "Installation complete."