Skip to content

Commit

Permalink
Fix formatting of CUDA doc page
Browse files Browse the repository at this point in the history
  • Loading branch information
kchristin22 committed Nov 20, 2024
1 parent a7d5189 commit 4324ab7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/userDocs/source/user/UsingCladOnCUDACode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ if not explicitly specified. Note that either none of these two arguments or bot
Clad does not handle cases where only one of the two is provided, even if the order is correct.

.. code-block:: cpp
#include "clad/Differentiator/Differentiator.h"
auto kernel_grad = clad::gradient(kernel, "in, out"); // compute the derivative of out w.r.t in
Expand All @@ -30,7 +31,8 @@ Clad supports the following CUDA features:
To use CUDA math functions, the user must define the equivalent pullback function in Clad's CUDA custom derivatives:

.. code-block:: cpp
// *In `clad/include/clad/Differentiator/BuiltinDerivativesCUDA.cuh`*
// In `clad/include/clad/Differentiator/BuiltinDerivativesCUDA.cuh`
namespace clad {
Expand Down

0 comments on commit 4324ab7

Please sign in to comment.