LM/Install oneAPI: Difference between revisions
< LM
Jump to navigation
Jump to search
No edit summary |
|||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
== Check system requirement == | |||
https://www.intel.com/content/www/us/en/developer/articles/release-notes/onemkl/2026.html | |||
== Install == | == Install == | ||
| Line 23: | Line 27: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Show version | == .bashrc == | ||
<syntaxhighlight lang="bash"> | |||
# Initialize onAPI on bash launched, except screen launched. | |||
if [ -z "$STY" ]; then | |||
source /opt/intel/oneapi/setvars.sh | |||
fi | |||
</syntaxhighlight> | |||
== Show current version & candidate version == | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
sudo apt update | |||
apt-cache policy intel-oneapi-mkl-devel | head -15 | |||
</syntaxhighlight> | </syntaxhighlight> | ||
<pre> | <pre> | ||
intel-oneapi-mkl-devel: | |||
已安裝:2026.1.0-236 | |||
候選: 2026.1.0-236 | |||
版本列表: | |||
*** 2026.1.0-236 500 | |||
500 https://apt.repos.intel.com/oneapi all/main amd64 Packages | |||
100 /var/lib/dpkg/status | |||
2026.0.0-908 500 | |||
500 https://apt.repos.intel.com/oneapi all/main amd64 Packages | |||
2025.3.1-8 500 | |||
500 https://apt.repos.intel.com/oneapi all/main amd64 Packages | |||
2025.3.0-461 500 | |||
500 https://apt.repos.intel.com/oneapi all/main amd64 Packages | |||
2025.2.0-628 500 | |||
500 https://apt.repos.intel.com/oneapi all/main amd64 Packages | |||
</pre> | </pre> | ||
== Show version info == | |||
'''Show oneAPI version info''' | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
| Line 47: | Line 77: | ||
</pre> | </pre> | ||
'''List SYCL devices''' | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
sycl-ls | |||
</syntaxhighlight> | </syntaxhighlight> | ||
<pre> | <pre> | ||
[level_zero:gpu][level_zero:0] Intel(R) oneAPI Unified Runtime over Level-Zero V2, Intel(R) Arc(TM) Pro B70 Graphics 20.2.0 [1.15.38646+6] | |||
[opencl:cpu][opencl:0] Intel(R) OpenCL, AMD Ryzen 5 9600X 6-Core Processor OpenCL 3.0 (Build 0) [2026.21.6.0.17_160000] | |||
[opencl:gpu][opencl:1] Intel(R) OpenCL Graphics, Intel(R) Arc(TM) Pro B70 Graphics OpenCL 3.0 NEO [26.22.38646.6] | |||
</pre> | </pre> | ||
Latest revision as of 11:05, 13 August 2026
Check system requirement
https://www.intel.com/content/www/us/en/developer/articles/release-notes/onemkl/2026.html
Install
# Install required tools
sudo apt update
sudo apt install -y wget gnupg ca-certificates
# Create dir for keyrings
sudo mkdir -m 0755 -p /etc/apt/keyrings
# Download public key for Intel SW Products, and convert into GPG format.
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \
| gpg --dearmor | sudo tee /etc/apt/keyrings/oneapi-archive-keyring.gpg > /dev/null
# Add apt source
echo "deb [signed-by=/etc/apt/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" \
| sudo tee /etc/apt/sources.list.d/oneAPI.list
# Install by apt
sudo apt update
sudo apt install -y intel-oneapi-mkl-devel intel-oneapi-compiler-dpcpp-cpp
source /opt/intel/oneapi/setvars.sh
.bashrc
# Initialize onAPI on bash launched, except screen launched.
if [ -z "$STY" ]; then
source /opt/intel/oneapi/setvars.sh
fi
Show current version & candidate version
sudo apt update
apt-cache policy intel-oneapi-mkl-devel | head -15
intel-oneapi-mkl-devel:
已安裝:2026.1.0-236
候選: 2026.1.0-236
版本列表:
*** 2026.1.0-236 500
500 https://apt.repos.intel.com/oneapi all/main amd64 Packages
100 /var/lib/dpkg/status
2026.0.0-908 500
500 https://apt.repos.intel.com/oneapi all/main amd64 Packages
2025.3.1-8 500
500 https://apt.repos.intel.com/oneapi all/main amd64 Packages
2025.3.0-461 500
500 https://apt.repos.intel.com/oneapi all/main amd64 Packages
2025.2.0-628 500
500 https://apt.repos.intel.com/oneapi all/main amd64 Packages
Show version info
Show oneAPI version info
icpx --version
Intel(R) oneAPI DPC++/C++ Compiler 2026.1.0 (2026.1.0.20260617) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /opt/intel/oneapi/compiler/2026.1/bin/compiler Configuration file: /opt/intel/oneapi/compiler/2026.1/bin/compiler/../icpx.cfg
List SYCL devices
sycl-ls
[level_zero:gpu][level_zero:0] Intel(R) oneAPI Unified Runtime over Level-Zero V2, Intel(R) Arc(TM) Pro B70 Graphics 20.2.0 [1.15.38646+6] [opencl:cpu][opencl:0] Intel(R) OpenCL, AMD Ryzen 5 9600X 6-Core Processor OpenCL 3.0 (Build 0) [2026.21.6.0.17_160000] [opencl:gpu][opencl:1] Intel(R) OpenCL Graphics, Intel(R) Arc(TM) Pro B70 Graphics OpenCL 3.0 NEO [26.22.38646.6]