tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

Custom rocm hip and c++ extensions

Open salykova opened this issue 2 years ago • 5 comments

🚀 The feature, motivation and pitch

Dear PyTorch developers and community,

We have nice tutorial cpp_extension on custom cuda extensions written by Peter Goldsborough. I’m wondering if the same can be done but on AMD GPUs with kernels written using rocm HIP. I mean the following: call custom forward+backward hip kernel from pytorch and include it in deep learning pipeline. Is it currently supported and are there any limitations?

Does somebody have experience of writing custom hip/c++ kernels and using them in pytorch?

cc @sekyondaMeta @svekars @carljparker @NicolasHug @kit1980 @subramen @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport

salykova avatar Dec 31 '22 17:12 salykova

@jeffdaily

svekars avatar May 24 '23 21:05 svekars

@jeffdaily We have some internal documentation that highlights some of the differences in enabling PyTorch extensions for ROCm. Shall I put that together into something we can publish on the pytorch documentation?

jithunnair-amd avatar May 24 '23 21:05 jithunnair-amd

/assigntome

jeffdaily avatar May 31 '23 15:05 jeffdaily

This issue has been unassigned due to inactivity. If you are still planning to work on this, you can still send a PR referencing this issue.

svekars avatar Oct 24 '23 18:10 svekars

/assigntome

guptaaryan16 avatar Nov 01 '23 21:11 guptaaryan16