Add hip-kernel #2698
smedegaard
started this conversation in
Ideas
Add hip-kernel
#2698
Replies: 1 comment
-
|
@EricLBuehler , do you have any advise on what I should consider when starting implementation of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The Idea
Merge a hip-kernel into main to support AMD GPUs
What is HIP?
The Heterogeneous-computing Interface for Portability (HIP) API is a C++ runtime API and kernel language that lets developers create portable applications running in heterogeneous systems, using CPUs and AMD GPUs or NVIDIA GPUs from a single source code. HIP provides a simple marshalling language to access either the AMD ROCM back-end, or NVIDIA CUDA back-end, to build and run application kernels.
Previous Work
@vberthet forked Candle and made a rocm-kernel (HIP is a part of ROCm) in January of 2024. It seemed promising but may have been abandoned since.
The topic has been discussed in #346 but there has been little activity the last few months
What Now?
I've started implementing a Rust wrapper for the HIP C++ lib, called hip_rs. It's very bare bones now. But it's got the basic functions and can call the BLAS lib safely.
Call for collaborators
I'd like to start implementing the
hip-kernelfor Candle usinghip_rsin parallel with expandinghip_rs, but would love some advice and guidance, and hopefully some collaborators to do so.Beta Was this translation helpful? Give feedback.
All reactions