Pytorch on ROCm

The pytorch package marks itself as broken if compiled with rocmSupport=true “because rocmPackages.hipblaslt is unpackaged.”

What needs to happen to resolve that? Was this packaged in nixpkgs at some point in the past, and since bitrotted? If so, could I pin pytorch to a previous version of nixpkgs where that still works? What needs to happen in order for hipblaslt to be packaged again, and is it something I could reasonably teach myself how to do?

Is there anything that would work as an interim workaround (i.e. enabling pytorch’s cuda features and somwhow passing it ZLUDA instead of CUDA)? If so, how would I do that?

I think I’ve spotted similar discussion around this PR:

(but I haven’t been watching these topics)