Skip to content

Commit 1967e6d

Browse files
committed
docs(core): note Program.compile(cache=...) in api reference
1 parent 5330398 commit 1967e6d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

cuda_core/docs/source/api.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,11 @@ Utility functions
256256
Program caches
257257
--------------
258258

259+
``Program.compile`` accepts a ``cache=`` keyword argument that integrates
260+
with any :class:`~cuda.core.utils.ProgramCacheResource`, so callers can
261+
avoid recompiling identical source + options + target without writing the
262+
:func:`~cuda.core.utils.make_program_cache_key` lookup by hand.
263+
259264
.. autosummary::
260265
:toctree: generated/
261266

0 commit comments

Comments
 (0)