LM/Install oneAPI: Difference between revisions
< LM
Jump to navigation
Jump to search
| Line 48: | Line 48: | ||
== .bashrc == | == .bashrc == | ||
<syntaxhighlight lang="bash"> | |||
# Initialize onAPI on bash launched, except screen launched. | |||
if [ -z "$STY" ]; then | |||
source /opt/intel/oneapi/setvars.sh | |||
fi | |||
</syntaxhighlight> | |||
Revision as of 10:29, 13 August 2026
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
Show version info
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]
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
.bashrc
# Initialize onAPI on bash launched, except screen launched.
if [ -z "$STY" ]; then
source /opt/intel/oneapi/setvars.sh
fi