Re: ci.rocm: invalid device function
Cordell Bloor, le jeu. 24 juil. 2025 08:21:26 -0600, a ecrit:
> (similarly to dpkg .mk files which provide CC, CFLAGS, etc. we could
> have HIPCCFLAGS)
>
> I opened a bug on dpkg-dev a while ago to provide HIPFLAGS [1], but we need to
> get that over the finish line. The HIPFLAGS should be the same as the CXXFLAGS,
> but in cases where the CXXFLAG is incompatible with HIP, it needs to be dropped
> or filtered to only be applied to the host.
Ah right there is host code too in the hip files, so it makes sense to
apply hardening flags there too. For the starpu package I just didn't
include any CXXFLAGS in the hip flags (the host part is extremely tiny
there, essentially just calling the device part).
> The d/rules for src:rocrand as a good example [2][3].
Which should indeed be shared in some .mk file ready for inclusion from
d/rules :)
Samuel
Reply to: