Skip to content

Commit 3bc26d0

Browse files
committed
Add note about matching open and close
Signed-off-by: Larsen, Steffen <[email protected]>
1 parent a1a7945 commit 3bc26d0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sycl/doc/extensions/experimental/sycl_ext_oneapi_inter_process_communication.asciidoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,11 @@ USM device pointer for device `dev` and context `ctx` is expected, except it
244244
cannot be passed to `sycl::free`. Instead, use the `close` function to free this
245245
memory pointer.
246246

247+
[_Note:_ The `open` function can be called multiple times on the same handle
248+
within the same process. The number of calls to the `close` function must be
249+
equal to the number of calls to the `open` function to free the memory pointer.
250+
_{endnote}_]
251+
247252
_Throws:_
248253

249254
* An exception with the `errc::feature_not_supported` error code if device

0 commit comments

Comments
 (0)