Re: ROCm 20211221 Packaging session notes and small update
I gave a try at an initial packaging for hipamd, and managed to get the
hipamd binaries produced. The package is in a very rough state,
but functional (tests are disabled, they can be activated in debian/rules).
https://salsa.debian.org/maxzor/rocm-hipamd
Hopefully it can serve as a support to design this package better.
I used the component feature of dpkg-source, to bundle the four git repos
together.
https://wiki.debian.org/Projects/DebSrc3.0#How_to_use_multiple_upstream_tarballs_in_3.0_.28quilt.29_format.3F
hipamd now compiles (lintian yells everywhere) as the 8th source package
in the little docker builder:
> https://salsa.debian.org/maxzor/rocm-builder
I have a few questions:
- "-DCMAKE_HIP_ARCHITECTURES" is made mandatory by upstream cmake
in hipamd CMakeLists.txt. What to do? Patch out the flag,
make a general package... or make a package per target GPU?
(debian/rules go gfx906 here)
- how to name source and binary packages?
See the AMD-Debian mapping table in the builder README.
- where to install the files, as already discussed?
I have started a csv with the layout that I went with here.
https://salsa.debian.org/maxzor/rocm-builder/-/blob/master/misc/wonders/amdhip_installs.csv
BR, Maxime
Reply to: