summary refs log tree commit diff stats
path: root/doc/manual
diff options
context:
space:
mode:
authorAndrew Brower <monofuel@japura.net>2024-07-08 05:17:04 -0400
committerGitHub <noreply@github.com>2024-07-08 11:17:04 +0200
commitdc46350fa192faf97f5d6ea3a05e41358a10a069 (patch)
treea3484b79f4049d5f06c676261a09eb195b0574c0 /doc/manual
parent3f5016f60e3ce7fd5c2883cf65dbbc9fbdbf9300 (diff)
downloadNim-dc46350fa192faf97f5d6ea3a05e41358a10a069.tar.gz
Add support for nvcc & hipcc (cuda/rocm) (#23805)
I've been working on making some basic cuda examples work, both with
cuda (nvcc) and with AMD HIP (hipcc) https://github.com/monofuel/hippo

- hipcc is just a drop-in replacement for clang and works out of the box
with clang settings in Nim. hipcc is capable of compiling for AMD ROCm
or to CUDA, depending on how HIP_PLATFORM is set.
- nvcc is a little quirky. we can use `-x cu` to tell it to handle nim's
`.cpp` files as if they were `.cu` files. nvcc expects all backend
compiler flags to be wrapped with a special `-Xcompiler=""` flag when
compiling and also when linking.

I manually tested on a linux desktop with amd and a laptop with nvidia.
Diffstat (limited to 'doc/manual')
0 files changed, 0 insertions, 0 deletions