Hi Mo,
- Patch all calls to roctx from PyTorch out of the Debian sources
This is the most expedient solution for getting pytorch-rocm uploaded and a patch to upstream that made roctx optional might be well-received. However, the PyTorch binaries distributed through PyPI are still going to require roctx, so this only fixes the problem for users of the Debian package and users that build PyTorch from source. That is probably a small fraction of users, so this is not a complete solution.
I will begin working on this tomorrow evening.
- Patch src:roctracer to build only bin:libroctx64-4 and bin:libroctx-dev
PyTorch only needs roctx, but roctx doesn't need cppheaderparser. If you patch roctracer to build only roctx, then the part that PyTorch needs could be packaged for Debian without requiring all of roctracer.
I have implemented this and pushed the results to salsa [1]. I
need to add package descriptions and fill out d/copyright, then I
can submit an RFS.
Sincerely,
Cory Bloor
[1]: https://salsa.debian.org/rocm-team/roctracer/