Make make rocblas build on SUSE fast #1
Reference in New Issue
Block a user
Delete Branch "eeich/rocblas:main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This series of patches fixes the build for SUSE, splits it between
the core library and tensile module builds and restructures the spec
file.
autogits-devel referenced this pull request from ROCm/_ObsPrj2025-06-30 19:09:25 +02:00
Is flavor/mulibuild necessary if only 1 thing is built ?
There are looping constructs added here that are not needed, simplify loops down to a single line.
ex
%(for i in
sed -ne "/package/s@ *<package>\([^<]*\)</package>@\1@p" %{S:2};do echo "Requires: rocblas-tensile-$i = %version";
done)
I was going to ask that this sed magic be commented, but that isn't needed when this is a single line.
Is flavor a good variable name ? No one on the fedora side is going to know what that means.
The variable use_flavors is defined but never used.
if flavor is never going to work with testing, the disable test by something like
%if %{with flavor}
%bcond_with test
Similar for other options like 950
separate out suse setting of the gpu_list, this will be a high change area
casual or non suse users are not going to know what this means.
%if 0%{!?_flavor:1} || "%{?_flavor}" == "all"
similar separate suse, then flavor conditions from things like
ex/
%if 0%{!?_flavor:1}
%files
%license LICENSE.md
So it is easy for the fedora/rhel people see where their changes need to be.
Patch3 is not in this commit
Yes, because 2 things are built:
Without _multibuild, only one build would take place.
I can simplify this. The loop is not required if there is only one flavor.
This line is needed:
as
@BUILD_FLAVOR@is replaced by OBS.You can replace 'flavor' by another term if you have a better idea.
Not true. It is used 3 times.
It is, at least I've tried to fix it. I haven't tested as I wasn't able to use the machine with the AMD GPU.
I'll check this.
Should we call it
suse_flavorto make it clearer?I can simplify this if we are just having an
allflavor.This condition is true for fedora/rhel as well as when the 'default' flavor is used. I could do:
Not sure if this would be more readable.
This is because it is already in the sources from a previous commit. It never got removed.
950 won't work with the spec file as shipped with suse - the
%buildscript does:which requires
Moduleswhich we don't ship. We do shipLmodon Tumbleweed, Leap and SLE15, but this has been dropped from SLES16 as we no longer support HPC.I can set a variable build_tensile_modules instead when
@BUILD_FLAVOR@is set to 'all' if you think this would be better.Try rpmbuild,
d48013a128todf12ff1591This is not expected to work - at least not on systems that have
%suse_versiondefined. You need to use the spec file from the source rpm which is 'preprocessed' already.At least this one should be mitigated now with the update I've pushed now.
You may stumble over the next issue though where you are unable to expand
%python_module.The correct way to test build these is to use
osc build <repository>.df12ff1591toc802f330a0c802f330a0to8c95dc8f268c95dc8f26toa6091a9a26a6091a9a26to216f9d4756Pull request closed