Skip to content

Commit

Permalink
HIP runtime API reference reorganize
Browse files Browse the repository at this point in the history
  • Loading branch information
neon60 committed Sep 6, 2024
1 parent 01f981f commit 160eb07
Show file tree
Hide file tree
Showing 31 changed files with 413 additions and 51 deletions.
3 changes: 1 addition & 2 deletions docs/doxygen/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -829,8 +829,7 @@ WARN_LOGFILE =
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
# Note: If this tag is empty the current directory is searched.

INPUT = mainpage.md \
../../include/hip \
INPUT = ../../include/hip \
../../../clr/hipamd/include/hip/amd_detail/amd_hip_gl_interop.h \
../../../clr/hipamd/include/hip/amd_detail/amd_surface_functions.h \
../../../clr/hipamd/include/hip/amd_detail/amd_hip_cooperative_groups.h \
Expand Down
33 changes: 0 additions & 33 deletions docs/doxygen/mainpage.md

This file was deleted.

11 changes: 6 additions & 5 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,18 @@ The HIP documentation is organized into the following categories:

:::{grid-item-card} Reference

* {doc}`/doxygen/html/index`
* [HIP runtime API](./reference/hip_runtime_api_reference)
* {ref}`modules_reference`
* {doc}`doxygen/html/annotated_data_structures`
* {doc}`doxygen/html/files_files`
* [HSA runtime API for ROCm](./reference/virtual_rocr)
* [HIP math API](./reference/math_api)
* [C++ language extensions](./reference/cpp_language_extensions)
* [C++ language support](./reference/cpp_language_support)
* [Driver API](./reference/driver_api_reference)
* [HIP math API](./reference/math_api)
* [HIP environment variables](./reference/env_variables)
* [Comparing syntax for different APIs](./reference/terms)
* [HSA runtime API for ROCm](./reference/virtual_rocr)
* [HIP managed memory allocation API](./reference/unified_memory_reference)
* [HIP virtual memory management API](./reference/virtual_memory_reference)
* [HIP Cooperative groups API](./reference/cooperative_groups_reference)
* [List of deprecated APIs](./reference/deprecated_api_list)

:::
Expand Down
39 changes: 39 additions & 0 deletions docs/reference/hip_runtime_api/modules.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
.. meta::
:description: HIP runtime API modules reference page
:keywords: AMD, ROCm, HIP, CUDA, HIP runtime API modules

.. _modules_reference:

*******************************************************************************
Modules
*******************************************************************************

The API is organized into modules based on functionality:

* :ref:`global_enum_defines_reference`
* :ref:`driver_reference`
* :ref:`device_management_reference`
* :ref:`execution_control_reference`
* :ref:`error_handling_reference`
* :ref:`stream_management_reference`
* :ref:`stream_memory_operations_reference`
* :ref:`event_management_reference`
* :ref:`memory_management_reference`

* :ref:`external_resource_interoperability_reference`
* :ref:`stream_memory_operations_reference`
* :ref:`unified_memory_reference`
* :ref:`virtual_memory_reference`

* :ref:`peer_to_peer_device_memory_access_reference`
* :ref:`context_management_reference`
* :ref:`module_management_reference`
* :ref:`occupancy_reference`
* :ref:`profiler_control_reference`
* :ref:`launch_api_reference`
* :ref:`texture_management_reference`
* :ref:`runtime_compilation_reference`
* :ref:`callback_activity_apis_reference`
* :ref:`graph_management_reference`
* :ref:`opengl_interop_reference`
* :ref:`surface_object_reference`
12 changes: 12 additions & 0 deletions docs/reference/hip_runtime_api/modules/callback_activity_apis.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. meta::
:description: This chapter is the callback activity APIs reference page.
:keywords: AMD, ROCm, HIP, CUDA, callback activity APIs, callback activity

.. _callback_activity_apis_reference:

*******************************************************************************
Callback activity APIs
*******************************************************************************

.. doxygengroup:: Callback
:content-only:
12 changes: 12 additions & 0 deletions docs/reference/hip_runtime_api/modules/context_management.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. meta::
:description: This chapter is the context management reference page.
:keywords: AMD, ROCm, HIP, CUDA, context management, context

.. _context_management_reference:

*******************************************************************************
Context management [deprecated]
*******************************************************************************

.. doxygengroup:: Context
:content-only:
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
.. _cooperative_groups_reference:

*******************************************************************************
HIP Cooperative groups API
Cooperative groups API
*******************************************************************************

Cooperative kernel launches
Expand Down
12 changes: 12 additions & 0 deletions docs/reference/hip_runtime_api/modules/device_management.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. meta::
:description: This chapter is the device management reference page
:keywords: AMD, ROCm, HIP, CUDA, device management, device

.. _device_management_reference:

*******************************************************************************
Device management
*******************************************************************************

.. doxygengroup:: Device
:content-only:
12 changes: 12 additions & 0 deletions docs/reference/hip_runtime_api/modules/error_handling.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. meta::
:description: This chapter is the error handling reference page
:keywords: AMD, ROCm, HIP, CUDA, error handling, error

.. _error_handling_reference:

*******************************************************************************
Error handling
*******************************************************************************

.. doxygengroup:: Error
:content-only:
12 changes: 12 additions & 0 deletions docs/reference/hip_runtime_api/modules/event_management.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. meta::
:description: This chapter is the event management reference page
:keywords: AMD, ROCm, HIP, CUDA, event management, event

.. _event_management_reference:

*******************************************************************************
Event management
*******************************************************************************

.. doxygengroup:: Event
:content-only:
12 changes: 12 additions & 0 deletions docs/reference/hip_runtime_api/modules/execution_control.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. meta::
:description: This chapter is the execution control reference page
:keywords: AMD, ROCm, HIP, CUDA, execution control, execution

.. _execution_control_reference:

*******************************************************************************
Execution control
*******************************************************************************

.. doxygengroup:: Execution
:content-only:
12 changes: 12 additions & 0 deletions docs/reference/hip_runtime_api/modules/global_enum_and_defines.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. meta::
:description: This chapter is the global enum and defines reference page
:keywords: AMD, ROCm, HIP, CUDA, global enum, defines

.. _global_enum_defines_reference:

*******************************************************************************
Global enum and defines
*******************************************************************************

.. doxygengroup:: GlobalDefs
:content-only:
12 changes: 12 additions & 0 deletions docs/reference/hip_runtime_api/modules/graph_management.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. meta::
:description: This chapter is the graph management reference page.
:keywords: AMD, ROCm, HIP, CUDA, graph management, graph

.. _graph_management_reference:

*******************************************************************************
Graph management
*******************************************************************************

.. doxygengroup:: Graph
:content-only:
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. meta::
:description: This chapter is the initialization and version reference page
:keywords: AMD, ROCm, HIP, CUDA, initialization, version

.. _driver_reference:

*******************************************************************************
Initialization and version
*******************************************************************************

.. doxygengroup:: Driver
:content-only:
13 changes: 13 additions & 0 deletions docs/reference/hip_runtime_api/modules/launch_api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.. meta::
:description: This chapter is the launch API to support the triple-chevron
syntax reference page.
:keywords: AMD, ROCm, HIP, CUDA, launch API, triple-chevron

.. _launch_api_reference:

*******************************************************************************
Launch API to support the triple-chevron syntax
*******************************************************************************

.. doxygengroup:: Clang
:content-only:
12 changes: 12 additions & 0 deletions docs/reference/hip_runtime_api/modules/memory_management.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. meta::
:description: This chapter is the memory management reference page
:keywords: AMD, ROCm, HIP, CUDA, memory management, memory

.. _memory_management_reference:

*******************************************************************************
Memory management
*******************************************************************************

.. doxygengroup:: Memory
:content-only:
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.. meta::
:description: This chapter is the external resource interoperability reference
page.
:keywords: AMD, ROCm, HIP, CUDA, external resource interoperability

.. _external_resource_interoperability_reference:

*******************************************************************************
External resource interoperability
*******************************************************************************

.. doxygengroup:: External
:content-only:
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. meta::
:description: This chapter is the stream memory operations reference page
:keywords: AMD, ROCm, HIP, CUDA, stream memory operations

.. _stream_memory_operations_reference:

*******************************************************************************
Stream memory operations
*******************************************************************************

.. doxygengroup:: StreamM
:content-only:
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
.. _unified_memory_reference:

*******************************************************************************
HIP managed memory allocation API
Managed memory allocation API
*******************************************************************************

.. doxygengroup:: MemoryM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
.. _virtual_memory_reference:

*******************************************************************************
HIP virtual memory management API
Virtual memory management API
*******************************************************************************

.. doxygengroup:: Virtual
Expand Down
12 changes: 12 additions & 0 deletions docs/reference/hip_runtime_api/modules/module_management.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. meta::
:description: This chapter is the module management reference page.
:keywords: AMD, ROCm, HIP, CUDA, module management, module

.. _module_management_reference:

*******************************************************************************
Module management
*******************************************************************************

.. doxygengroup:: Module
:content-only:
12 changes: 12 additions & 0 deletions docs/reference/hip_runtime_api/modules/occupancy.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. meta::
:description: This chapter is the occupancy reference page.
:keywords: AMD, ROCm, HIP, CUDA, occupancy

.. _occupancy_reference:

*******************************************************************************
Occupancy
*******************************************************************************

.. doxygengroup:: Occupancy
:content-only:
12 changes: 12 additions & 0 deletions docs/reference/hip_runtime_api/modules/opengl_interop.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. meta::
:description: This chapter is the OpenGL interop reference page.
:keywords: AMD, ROCm, HIP, CUDA, OpenGL interop

.. _opengl_interop_reference:

*******************************************************************************
OpenGL interop
*******************************************************************************

.. doxygengroup:: OpenGL
:content-only:
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.. meta::
:description: This chapter is the peer to peer device memory access reference
page.
:keywords: AMD, ROCm, HIP, CUDA, peer to peer device memory access, peer to peer

.. _peer_to_peer_device_memory_access_reference:

*******************************************************************************
Peer to peer device memory access
*******************************************************************************

.. doxygengroup:: PeerToPeer
:content-only:
12 changes: 12 additions & 0 deletions docs/reference/hip_runtime_api/modules/profiler_control.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. meta::
:description: This chapter is the profiler control reference page.
:keywords: AMD, ROCm, HIP, CUDA, profiler control, profiler

.. _profiler_control_reference:

*******************************************************************************
Profiler control
*******************************************************************************

.. doxygengroup:: Profiler
:content-only:
12 changes: 12 additions & 0 deletions docs/reference/hip_runtime_api/modules/runtime_compilation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. meta::
:description: This chapter is the runtime compilation reference page.
:keywords: AMD, ROCm, HIP, CUDA, runtime compilation

.. _runtime_compilation_reference:

*******************************************************************************
Runtime compilation
*******************************************************************************

.. doxygengroup:: Runtime
:content-only:
12 changes: 12 additions & 0 deletions docs/reference/hip_runtime_api/modules/stream_management.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. meta::
:description: This chapter is the stream management reference page
:keywords: AMD, ROCm, HIP, CUDA, stream management, stream

.. _stream_management_reference:

*******************************************************************************
Stream management
*******************************************************************************

.. doxygengroup:: Stream
:content-only:
Loading

0 comments on commit 160eb07

Please sign in to comment.