You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+42Lines changed: 42 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -37,3 +37,45 @@ $ git pull
37
37
```
38
38
39
39
Refer to each example and/or exercise for detailed instructions on how to run it.
40
+
41
+
Examples
42
+
=========
43
+
44
+
[Vector Addition](examples/vector_addition)
45
+
--------------------------------------------
46
+
47
+
This trivial example can be used to compare a simple vector addition in CUDA to
48
+
an equivalent implementation in SYCL for CUDA. The aim of the example is also
49
+
to highlight how to build an application with SYCL for CUDA using DPC++ support,
50
+
for which an example CMakefile is provided.
51
+
52
+
[CUDA Interop](examples/cuda_interop)
53
+
--------------------------------------------
54
+
55
+
In this example, we re-use the trivial SYCL kernel we used in Vector Addition, but instead of writing the SYCL variant, we will keep the original CUDA kernel, only replacing the CUDA Runtime calls with the SYCL API.
56
+
57
+
[Fortran Interface](examples/fortran_interface)
58
+
--------------------------------------------
59
+
60
+
This demonstrates an example of how to call a SYCL function from a CUDA fortran code.
61
+
62
+
[MPI](examples/MPI)
63
+
--------------------------------------------
64
+
65
+
This example shows how to integrate MPI calls within the SYCL DAG using Host Tasks for integration.
66
+
67
+
68
+
[SGEMM Interop](examples/sgemm_interop)
69
+
--------------------------
70
+
71
+
This demonstrates using SYCL's `host_task` for CUDA interoperability, calling CUBLAS's SGEMM routine for matrix multiplication.
0 commit comments