This repository contains examples that demonstrate how to use the CUDA backend in SYCL.
The examples are built and test in Linux with GCC 7.4, NVCC 10.1 and the experimental support for CUDA in the DPC++ SYCL implementation.
CUDA is a registered trademark of NVIDIA Corporation SYCL is a trademark of the Khronos Group Inc.
These examples are intended to be used with this docker image. It provides all the examples, libraries and the required environment variables.
NVIDIA Container Toolkit must be installed to run the image.
A useful guide for setting up docker and the NVIDIA Container Toolkit can be found here.
Once docker and the NVIDIA Container Toolkit are installed, we can create a new container and run the examples witin it.
$ sudo docker run --gpus all -it ruyman/dpcpp_cuda_examplesOnce inside the docker image, navigate to /home/examples/ to find a local clone of this repo. Make sure to pull the latest changes:
$ cd /home/examples/SYCL-For-CUDA-Examples
$ git pullRefer to each example and/or exercise for detailed instructions on how to run it.