Skip to content

Commit

Permalink
nim code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
monofuel committed Sep 2, 2024
1 parent b3206a5 commit 44f1aac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ A Julia Set fractal generated with HIP
- nim 2.1.9 added `--cc:nvcc` and `--cc:hipcc`
- `nim cpp` is required for both HIP and CUDA.

```
```nim
import hippo
proc addKernel*(a, b: cint; c: ptr[cint]) {.hippoGlobal.} =
Expand Down Expand Up @@ -39,7 +39,7 @@ echo "2 + 7 = ", c
- all pragmas are prefixed with `hippo` and can be used for hip or cuda to assign attributes like `__global__` or `__shared__`

basic kernel example:
```
```nim
proc add(a,b: int; c: ptr[int]): {.hippoGlobal.} =
c[] = a + b
```
Expand Down

0 comments on commit 44f1aac

Please sign in to comment.