Science&Enigneering
Install oneAPI for NVIDIA GPUs
##-
2023. 4. 13. 19:37
728x90
Install oneAPI for NVIDIA GPUs - Guides - oneAPI for NVIDIA® GPUs - Products - Codeplay Developer
info Please note that you are viewing a guide targeting an older version of oneAPI for NVIDIA® GPUs. This guide was designed for version 2023.0.0.
developer.codeplay.com
Official version of oneAPI downloaded from Intel website only supports Intel GPU.
To use Nvidia GPU....
1. Download the oneAPI for NVIDIA GPUs installer.
The CUDA version must be greater than 11.0.
2. Run the downloaded self-extracting installer:
sh oneapi-for-nvidia-gpus-2023.0.0-linux.sh
3. Set Up Your Environment
. /opt/intel/oneapi/setvars.sh --include-intel-llvm
4. Verify Your installation
sycl-ls
[ext_oneapi_cuda:gpu:0] NVIDIA CUDA BACKEND, TITAN RTX 0.0 [CUDA 11.0]
5. Compile code
clang++ -fsycl -fsycl-targets=nvptx64-nvidia-cuda simple-sycl-app.cpp -o simple-sycl-app
6. Run the application with:
SYCL_DEVICE_FILTER=cuda SYCL_PI_TRACE=1 ./simple-sycl-app
300x250