From 9732a16895d908a0507e3119a882c145bf612ef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Fri, 1 Aug 2025 15:03:13 +0000 Subject: [PATCH] Small markup fixes of the local kernel repo example --- docs/source/layers.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/layers.md b/docs/source/layers.md index 4735756..425f6eb 100644 --- a/docs/source/layers.md +++ b/docs/source/layers.md @@ -265,6 +265,7 @@ Capabilities behave as follows: an existing kernel, the new kernel will replace the old kernel. - When there are multiple kernels that support a capability, the kernel with the smaller capability interval will be used. E.g. given: + - `KernelA` with `min_capability=80` and `max_capability=89`; - `KernelB` with `min_capability=75` and `max_capability=89`; - `kernelize` runs on a system with capability 8.6. @@ -285,12 +286,11 @@ a kernel to a range of ROCm capabilities. The `LocalLayerRepository` class is provided to load a repository from a local directory. For example: -``` +```python with use_kernel_mapping( { "SiluAndMul": { "cuda": LocalLayerRepository( - # install_kernel will give the fully-resolved path. repo_path="/home/daniel/kernels/activation", package_name="activation", layer_name="SiluAndMul",