From 775d554a80e521d3057cd1fa11548e5e7dacd84f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ty=C3=A1s=20Aradi?= Date: Wed, 27 Nov 2024 16:54:59 +0100 Subject: [PATCH] WIP --- .../hip_runtime_api/asynchronous/async.svg | 378 +++++++++++++++ .../hip_runtime_api/asynchronous/event.svg | 457 ++++++++++++++++++ .../asynchronous/sequential.svg | 313 ++++++++++++ docs/how-to/hip_runtime_api/asynchronous.rst | 13 + 4 files changed, 1161 insertions(+) create mode 100644 docs/data/how-to/hip_runtime_api/asynchronous/async.svg create mode 100644 docs/data/how-to/hip_runtime_api/asynchronous/event.svg create mode 100644 docs/data/how-to/hip_runtime_api/asynchronous/sequential.svg diff --git a/docs/data/how-to/hip_runtime_api/asynchronous/async.svg b/docs/data/how-to/hip_runtime_api/asynchronous/async.svg new file mode 100644 index 0000000000..78cc8dac22 --- /dev/null +++ b/docs/data/how-to/hip_runtime_api/asynchronous/async.svg @@ -0,0 +1,378 @@ + + + + + + + + + + + + + + H2Ddata2 + + + + + + D2Hdata2 + + + + + + kerneldata2 + + + + + + + + H2Ddata1 + + + + + stream1 + + + + + default stream + + + + + stream2 + + + + + time + + + + + + D2Hdata1 + + + + + + kerneldata1 + + + + + + + + + + Text is not SVG - cannot display + + + diff --git a/docs/data/how-to/hip_runtime_api/asynchronous/event.svg b/docs/data/how-to/hip_runtime_api/asynchronous/event.svg new file mode 100644 index 0000000000..7ecfb123ad --- /dev/null +++ b/docs/data/how-to/hip_runtime_api/asynchronous/event.svg @@ -0,0 +1,457 @@ + + + + + + + + + + + + + + H2Ddata2 + + + + + + D2Hdata1 + + + + + + kerneldata2 + + + + + + + + + H2Ddata1 + + + + + stream1 + + + + + default stream + + + + + create events + + + + + stream2 + + + + + time + + + + + + D2Hdata2 + + + + + event1 + + + + + event2 + + + + + + kerneldata1 + + + + + + + + + + + + Text is not SVG - cannot display + + + diff --git a/docs/data/how-to/hip_runtime_api/asynchronous/sequential.svg b/docs/data/how-to/hip_runtime_api/asynchronous/sequential.svg new file mode 100644 index 0000000000..a6265a9089 --- /dev/null +++ b/docs/data/how-to/hip_runtime_api/asynchronous/sequential.svg @@ -0,0 +1,313 @@ + + + + + + + + + + + + + + H2Ddata1 + + + + + default stream + + + + + time + + + + + + D2Hdata1 + + + + + + kerneldata1 + + + + + + + H2Ddata2 + + + + + + kerneldata2 + + + + + + D2Hdata2 + + + + + + + Text is not SVG - cannot display + + + diff --git a/docs/how-to/hip_runtime_api/asynchronous.rst b/docs/how-to/hip_runtime_api/asynchronous.rst index e7cc62849b..62791361de 100644 --- a/docs/how-to/hip_runtime_api/asynchronous.rst +++ b/docs/how-to/hip_runtime_api/asynchronous.rst @@ -180,6 +180,10 @@ Example .. tab-item:: asynchronous + .. figure:: ../../data/how-to/hip_runtime_api/asynchronous/async.svg + :alt: Asynchronous concurrency + :align: center + .. code-block:: cpp #include @@ -256,6 +260,10 @@ Example .. tab-item:: hipStreamWaitEvent + .. figure:: ../../data/how-to/hip_runtime_api/asynchronous/event.svg + :alt: Asynchronous concurrency with events + :align: center + .. code-block:: cpp #include @@ -347,6 +355,11 @@ Example .. tab-item:: sequential + .. figure:: ../../data/how-to/hip_runtime_api/asynchronous/sequential.svg + :alt: Asynchronous concurrency with events + :align: center + + .. code-block:: cpp #include