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: sycl/doc/GetStartedGuide.md
+14-6Lines changed: 14 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -740,12 +740,20 @@ the CMake.
740
740
741
741
### Code the program for a specific GPU
742
742
743
-
To assist in finding a specific SYCL compatible device out of all that may be available, a "device selector" may be used. A "device selector" is a ranking function that will give an integer ranking value to all the
744
-
devices on the system. It can be passed to `sycl::queue`, `sycl::device` and `sycl::platform` constructors. The highest ranking device is then selected. SYCL has built-in device selectors for selecting a generic GPU, CPU, or accelerator device, as well as one for a default device. Additionally,
745
-
a user can define their own as function, lambda, or functor class. Device selectors returning negative values will "reject" a device ensuring it is not selected, but values 0 or higher will be selected by the highest score with ties resolved by an internal algorithm (see Section 4.6.1 of the SYCL 2020 specification)
746
-
747
-
The example below illustrates how to use a device selector to create
748
-
device and queue objects bound to Intel GPU device:
743
+
To assist in finding a specific SYCL compatible device out of all that may be
744
+
available, a "device selector" may be used. A "device selector" is a ranking
745
+
function (C++ Callable) that will give an integer ranking value to all the
746
+
devices on the system. It can be passed to `sycl::queue`, `sycl::device` and
747
+
`sycl::platform` constructors. The highest ranking device is then selected. SYCL
748
+
has built-in device selectors for selecting a generic GPU, CPU, or accelerator
749
+
device, as well as one for a default device. Additionally, a user can define
750
+
their own as function, lambda, or functor class. Device selectors returning
751
+
negative values will "reject" a device ensuring it is not selected, but values 0
752
+
or higher will be selected by the highest score with ties resolved by an
753
+
internal algorithm (see Section 4.6.1 of the SYCL 2020 specification)
754
+
755
+
The example below illustrates how to use a device selector to create device and
0 commit comments