Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
neon60 committed Jan 29, 2025
1 parent 70a7b20 commit cf1cfac
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/how-to/hip_rtc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ Kernels can be stored in a string:
}
)"};
Now to compile this kernel, it needs to be associated with ``hiprtcProgram``
type, which is done by declaring ``hiprtcProgram prog;`` and associating the
string of kernel with this program:
Now to compile this kernel, it needs to be associated with
:cpp:struct:`hiprtcProgram` type, which is done by declaring
``hiprtcProgram prog;`` and associating the string of kernel with this program:

.. code-block:: cpp
Expand All @@ -57,11 +57,11 @@ string of kernel with this program:
NULL, // Header sources
NULL); // Name of header files
``hiprtcCreateProgram`` API also allows you to add headers which can be included
in your RTC program. For online compilation, the compiler pre-defines HIP device
API functions, HIP specific types and macros for device compilation, but does
not include standard C/C++ headers by default. Users can only include header
files provided to ``hiprtcCreateProgram``.
:cpp:func:`hiprtcCreateProgram` API also allows you to add headers which can be
included in your RTC program. For online compilation, the compiler pre-defines
HIP device API functions, HIP specific types and macros for device compilation,
but does not include standard C/C++ headers by default. Users can only include
header files provided to :cpp:func:`hiprtcCreateProgram`.

After associating the kernel string with ``hiprtcProgram``, you can now compile
this program using:
Expand Down

0 comments on commit cf1cfac

Please sign in to comment.