@@ -55,7 +55,7 @@ device selection involves the usage of *filter strings*. Refer to
5555
5656The :ref: `fig-gpu-device-selection ` example also demonstrates the usage of a filter string
5757to create a GPU device directly. Using a filter string allows much more
58- fine-grained control for selecting a device.
58+ fine-grained control for selecting a device.
5959
6060The following :ref: `fig-filter-selection `
6161example demonstrates the usage of the device selection using filter
@@ -93,7 +93,7 @@ A possible output for the :ref:`fig-adv-device-selection` example:
9393
9494
9595A **filter string ** is a three-tuple that may specify the *backend *,
96- *device type *, and *device number * as a colon (:) separated string.
96+ *device type *, and *device number * as a colon (:) separated string.
9797
9898.. csv-table ::
9999 :header: "String", "Usage", "Values"
@@ -103,19 +103,19 @@ A **filter string** is a three-tuple that may specify the *backend*,
103103 "*device type *", "Specifies the type of device.", "``host ``, ``gpu ``, ``cpu ``, ``accelerator ``"
104104 "*device number *", "Specifies the ordinality of the device in the listing of devices as determined by the SYCL* runtime.", "Numeric value"
105105
106- The backend, device type, and device number value are optional but provide at least one of them.
106+ The backend, device type, and device number value are optional but provide at least one of them.
107107That is, ``opencl:gpu:0 ``, ``gpu:0 ``, ``gpu ``, ``0 ``, and ``opencl:0 `` are all valid filter strings.
108108
109109The device listing including the ``device number value `` remains stable for
110110a given system unless the driver configuration is changed or the SYCL
111- runtime setting is changed using the ``SYCL_DEVICE_FILTER `` environment variable.
111+ runtime setting is changed using the ``SYCL_DEVICE_FILTER `` environment variable.
112112Refer to :oneapi_filter_selection: `oneAPI filter selection extension <> ` for more
113113information.
114114
115115Advanced Device Selection
116116-------------------------
117117
118- Real-world applications may require more precise control over device selection.
118+ Real-world applications may require more precise control over device selection.
119119Dpctl helps you to accomplish more advanced device selection.
120120
121121.. _fig-custom-device-selection :
@@ -129,12 +129,12 @@ Dpctl helps you to accomplish more advanced device selection.
129129The :ref: `fig-custom-device-selection ` example shows a way of selecting a device
130130based on a specific hardware property. The process is the following:
131131
132- 1. The :func: `dpctl.get_devices() ` returns a list of all *root * devices on the system.
132+ 1. The :func: `dpctl.get_devices() ` returns a list of all *root * devices on the system.
1331332. Out of that list the devices that
134- support half-precision floating-point arithmetic are selected.
134+ support half-precision floating-point arithmetic are selected.
1351353. A "score" computed using the SYCL8 runtime's default device scoring logic that is
136136stored in :attr: `dpctl.SyclDevice.default_selector_score ` is used to select a
137- single device.
137+ single device.
138138
139139Refer to the :class: `dpctl.SyclDevice ` documentation for a list
140140of hardware properties that may be used for device selection.
0 commit comments