Skip to content

Commit a32d793

Browse files
committed
Require non-throwing construction of predefined policies
1 parent 4342a38 commit a32d793

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/elements/oneDPL/source/parallel_api/execution_policies.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ immutable ``device_policy`` object. It is associated with a SYCL queue construct
174174
the SYCL device selector that corresponds to the used variable template.
175175
[*Example*: ``dpgpu<>`` is associated with a queue created by ``sycl::gpu_selector_v``. -- *end example*]
176176

177-
Creation or use of a ``dpgpu`` or a ``dpcpu`` policy object can throw ``sycl::exception``
178-
if no appropriate device is found.
177+
Construction of predefined device policies must not throw exceptions.
178+
Use of a ``dpgpu`` or a ``dpcpu`` policy object can throw ``sycl::exception`` if no appropriate device is found.
179179

180180
make_device_policy Function
181181
^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)