As darktable co-maintainer, today I was speaking with darix from OpenSUSE community, which maintains such package on that distro. On their OBS build system, they are able to build various packages each one optimized for a single x86_64 CPU generation using @BUILD_FLAVOR@ + _multibuild file.[1] So for example they have packages darktable-broadwell darktable-ivybridge darktable-sandybridge darktable-skylake darktable-skylake-avx512
darix also said "that is an OBS feature, nothing that you can just copy to koji[...]" "there is no generic solution to this for a normal distro package".
I would like to study a way to make darktable (sub)packages very optimized for each CPU generation, so I am asking you if that is possible on Fedora, and what I should study to achieve it.
Best regards
[1]: https://build.opensuse.org/package/show/home:darix:darktable:master/darktabl...
On Friday, 13 April 2018 at 15:47, Germano Massullo wrote:
As darktable co-maintainer, today I was speaking with darix from OpenSUSE community, which maintains such package on that distro. On their OBS build system, they are able to build various packages each one optimized for a single x86_64 CPU generation using @BUILD_FLAVOR@ + _multibuild file.[1] So for example they have packages darktable-broadwell darktable-ivybridge darktable-sandybridge darktable-skylake darktable-skylake-avx512
darix also said "that is an OBS feature, nothing that you can just copy to koji[...]" "there is no generic solution to this for a normal distro package".
I would like to study a way to make darktable (sub)packages very optimized for each CPU generation, so I am asking you if that is possible on Fedora, and what I should study to achieve it.
On Fedora 27+ (glibc 2.26+), you can use the standard way of building optimized libraries and putting them in platform and capability-specific directories, e.g.: /usr/lib64/haswell /usr/lib64/haswell/avx512_1 /usr/lib64/xeon_phi
It's not the same as OBS does, but it's better than nothing.
See this article for more information https://clearlinux.org/blogs/transparent-use-library-packages-optimized-inte...
Regards, Dominik
On 13 April 2018 at 09:47, Germano Massullo germano.massullo@gmail.com wrote:
As darktable co-maintainer, today I was speaking with darix from OpenSUSE community, which maintains such package on that distro. On their OBS build system, they are able to build various packages each one optimized for a single x86_64 CPU generation using @BUILD_FLAVOR@ + _multibuild file.[1] So for example they have packages darktable-broadwell darktable-ivybridge darktable-sandybridge darktable-skylake darktable-skylake-avx512
darix also said "that is an OBS feature, nothing that you can just copy to koji[...]" "there is no generic solution to this for a normal distro package".
I would like to study a way to make darktable (sub)packages very optimized for each CPU generation, so I am asking you if that is possible on Fedora, and what I should study to achieve it.
I would prefer if you also didn't do this with koji. This is more of a feature for copr as you are exploding out the amount of storage that the distribution uses by each of these architectures. [And if one package wants cpu specialization, then many packages will want it even if it doesn't make sense because the optimized cpu instruction speed is completley lost in anything that asks for memory or disk.
Best regards
devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-leave@lists.fedoraproject.org