Skip to content

Commit

Permalink
Rephrase shareable handle import
Browse files Browse the repository at this point in the history
  • Loading branch information
matyas-streamhpc authored and neon60 committed Jul 29, 2024
1 parent 42778c4 commit 73043af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/how-to/stream_ordered_allocator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ To export a memory pool pointer to a shareable handle, use ``hipMemPoolExportToS
return 0;
}
To import a memory pool pointer from a shareable handle, which could be a file descriptor or a handle obtained from another process, use ``hipMemPoolImportFromShareableHandle()``. This function allows you to restore a memory pool pointer exported using ``hipMemPoolExportPointer()`` or a similar mechanism. The exported shareable handle data contains information about the memory pool, including its size, location, and other relevant details. Importing the handle provides a valid memory pointer to the same memory, which allows you to share memory across different contexts.
To import and restore a memory pool pointer from a shareable handle, which could be a file descriptor or a handle obtained from another process, use ``hipMemPoolImportFromShareableHandle()``. The exported shareable handle data contains information about the memory pool, including its size, location, and other relevant details. Importing the handle provides a valid memory pointer to the same memory, which allows you to share memory across different contexts.

.. code-block:: cpp
Expand Down

0 comments on commit 73043af

Please sign in to comment.