Bug 2539896 (libxstream)
| Summary: | Review Request: libxstream - OpenCL-accelerated tensor operations built on LIBXS | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | SY Wang <uwsy1059> |
| Component: | Package Review | Assignee: | Cristian Le <fedora> |
| Status: | ASSIGNED --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | fedora, msuchy, package-review |
| Target Milestone: | --- | Flags: | fedora:
fedora-review?
|
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | https://github.com/hfp/libxstream | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
SY Wang
2026-09-24 02:55:32 UTC
[fedora-service-build] [fedora-review-service-build] The build in Mock failed with: -- Installing: /builddir/build/BUILD/libxstream-1.0.0-build/BUILDROOT/usr/share/libxstream/samples/smm/params/tune_multiply_V100.csv truncate: cannot open '/usr/share/libxstream/samples/smm/smm_kernels.h' for writing: No such file or directory /builddir/build/BUILD/libxstream-1.0.0-build/libxstream-1.0.0/scripts/tool_opencl.sh: line 159: /usr/share/libxstream/samples/smm/smm_kernels.h: No such file or directory /builddir/build/BUILD/libxstream-1.0.0-build/libxstream-1.0.0/scripts/tool_opencl.sh: line 159: /usr/share/libxstream/samples/smm/smm_kernels.h: No such file or directory ERROR: no OpenCL file was given! CMake Error at redhat-linux-build/cmake_install.cmake:153 (message): tool_opencl.sh failed with code 1 error: Bad exit status from /var/tmp/rpm-tmp.9ZsprG (%install) You can reproduce it by running: mock -r fedora-rawhide-x86_64 libxstream-1.0.0-1.fc46.src.rpm Apart from the build failures that indeed is reproducible (please backport at least 7220e7de322bd4a29a2bdbcff5341540fc71fcc1 so that we do not do "builds" at install time): - The requirement of `clang` to compile the kernels is suspicious to me, can you show how it behaves without it? - Are there some tests that require some actual hardware? - Can you double-check why `libxs` and `OpenCL` are needed? I suspect it's needed for the public headers? - You can drop the `opencl-headers`, it is included in `ocl-icd-devel` - What exactly is `scripts/tool_opencl.sh` trying to do? It looks fragile at the very least - The `libxstream_(cp2k|dbcsr)` being part of this project and not vice-versa is weird. Is there a story behind them? Mainly concerned if this is trying to do some symbol collisions shenanigans > - The requirement of `clang` to compile the kernels is suspicious to me, can you show how it behaves without it?
Ah that is introduced in main branch after 1.0.0 version. I can remove it now, but in current upstream main branch without Clang ctest will report error.
Wrt the building failure, I remember it was 1.0.0 bug, and I will patch it; it's been a while ago when I started on this spec, but recently forgot to test against release...
> Can you double-check why `libxs` and `OpenCL` are needed? I suspect it's needed for the public headers?
Libxstream directly uses their headers. In their Makefile build system the libxs Makefile.inc is even shared with libxstream (I think this is also why Hans install that file together with CMake...)
> - Are there some tests that require some actual hardware? I think, for 1.0.0 release, maybe yes; without GPU or OpenCL platform there will indeed be some code left untested, and I think this is why https://github.com/hfp/libxstream/commit/04c88a7b2b571fee95b6a4e322e9114591ceb1c4. What looks strange is that the added testing code there is required to be compiled with Clang. Spec URL: https://growl.fedorapeople.org/reviews/libxstream/libxstream.spec SRPM URL: https://growl.fedorapeople.org/reviews/libxstream/libxstream-1.0.0-1.fc46.src.rpm - Patch CMake and drop `opencl-headers` Overall looks ok - samples/smm/acc_libsmm.h is still licensed under GPL-2.0-or-later. I see that it got relicensed, but that commit [1] but that had no visible discussion. Also all of the copyright is attributed to DBCSR, is that intended? The license has only Intel as copyright holder > - The `libxstream_(cp2k|dbcsr)` being part of this project and not vice-versa is weird. Is there a story behind them? Mainly concerned if this is trying to do some symbol collisions shenanigans Any context for this? - `INTERFACE_COMPILE_DEFINITIONS "__OPENCL;__ACC;__LIBXS"` in the Targets.cmake is worth reporting to upstream. This can lead to defines collisions. They should check if the `INTERFACE` is intended and if so should they not prefix the usage in the header files? - Should the pre-tuned samples not be in the main library? Also what is the search pattern for this? Does the user have a writable path in this search? - Why the ExclusiveArch here? - Devel scripts should be executable (see rpmlint part) - No ctests were run [1]: https://github.com/hfp/libxstream/commit/11ed0417e8cf46321fb12c5d3af17fb65aa71721 Package Review ============== Legend: [x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated [ ] = Manual review needed ===== MUST items ===== C/C++: [x]: Package does not contain kernel modules. (afaiu this refers to linux kernels, not the gpu kernels or whatever the terminology is here) [x]: If your application is a C or C++ application you must list a BuildRequires against gcc, gcc-c++ or clang. [x]: Header files in -devel subpackage, if present. [x]: ldconfig not called in %post and %postun for Fedora 28 and later. [x]: Package does not contain any libtool archives (.la) [x]: Package contains no static executables. [x]: Rpath absent or only used for internal libs. [x]: Development (unversioned) .so files in -devel subpackage, if present. Generic: [x]: Package is licensed with an open-source compatible license and meets other legal requirements as defined in the legal section of Packaging Guidelines. [!]: License field in the package spec file matches the actual license. Note: Checking patched sources after %prep for licenses. Licenses found: "Unknown or generated", "BSD 3-Clause License", "GNU General Public License, Version 2", "*No copyright* BSD 3-Clause License". 85 files have unknown license. Detailed output of licensecheck in /home/lecris/FedoraRPMs/2539896-libxstream/licensecheck.txt (GPL issue pointed above) [x]: License file installed when any subpackage combination is installed. [x]: %build honors applicable compiler flags or justifies otherwise. [x]: Package contains no bundled libraries or specifies bundled libraries with Provides: bundled(<libname>) if unbundling is not possible. [x]: Changelog in prescribed format. [x]: Sources contain only permissible code or content. [-]: Package contains desktop file if it is a GUI application. [x]: Development files must be in a -devel package [x]: Package uses nothing in %doc for runtime. [x]: Package consistently uses macros (instead of hard-coded directory names). [x]: Package is named according to the Package Naming Guidelines. [x]: Package does not generate any conflict. [x]: Package obeys FHS, except libexecdir and /usr/target. [-]: If the package is a rename of another package, proper Obsoletes and Provides are present. [x]: Requires correct, justified where necessary. [x]: Spec file is legible and written in American English. [-]: Package contains systemd file(s) if in need. [x]: Useful -debuginfo package or justification otherwise. [!]: Package is not known to require an ExcludeArch tag. [x]: Package complies to the Packaging Guidelines [x]: Package successfully compiles and builds into binary rpms on at least one supported primary architecture. [x]: Package installs properly. [x]: Rpmlint is run on all rpms the build produces. Note: There are rpmlint messages (see attachment). [x]: If (and only if) the source package includes the text of the license(s) in its own file, then that file, containing the text of the license(s) for the package is included in %license. [x]: The License field must be a valid SPDX expression. [x]: Package requires other packages for directories it uses. [x]: Package must own all directories that it creates. [x]: Package does not own files or directories owned by other packages. [x]: Package uses either %{buildroot} or $RPM_BUILD_ROOT [x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the beginning of %install. [x]: Macros in Summary, %description expandable at SRPM build time. [x]: Dist tag is present. [x]: Package does not contain duplicates in %files. [x]: Permissions on files are set properly. [x]: Package must not depend on deprecated() packages. [x]: Package use %makeinstall only when make install DESTDIR=... doesn't work. [x]: Package is named using only allowed ASCII characters. [x]: Package does not use a name that already exists. [x]: Package is not relocatable. [x]: Sources used to build the package match the upstream source, as provided in the spec URL. [x]: Spec file name must match the spec package %{name}, in the format %{name}.spec. [x]: File names are valid UTF-8. [x]: Large documentation must go in a -doc subpackage. Large could be size (~1MB) or number of files. Note: Documentation size is 0 bytes in 0 files. [x]: Packages must not store files under /srv, /opt or /usr/local ===== SHOULD items ===== Generic: [-]: If the source package does not include license text(s) as a separate file from upstream, the packager SHOULD query upstream to include it. [x]: Final provides and requires are sane (see attachments). [?]: Package functions as described. [x]: Latest version is packaged. [!]: Package does not include license text files separate from upstream. [x]: Patches link to upstream bugs/comments/lists or are otherwise justified. [-]: Sources are verified with gpgverify first in %prep if upstream publishes signatures. Note: gpgverify is not used. [!]: %check is present and all tests pass. (there are no ctests?) [x]: Packages should try to preserve timestamps of original installed files. [x]: Reviewer should test that the package builds in mock. [x]: Buildroot is not present [x]: Package has no %clean section with rm -rf %{buildroot} (or $RPM_BUILD_ROOT) [x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin. [x]: Fully versioned dependency in subpackages if applicable. [x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file [x]: The placement of pkgconfig(.pc) files are correct. [x]: Sources can be downloaded from URI in Source: tag [x]: SourceX is a working URL. [x]: Package should compile and build into binary rpms on all supported architectures. [x]: Spec use %global instead of %define unless justified. ===== EXTRA items ===== Generic: [-]: Spec file according to URL is the same as in SRPM. Note: Spec file as given by url is not the same as in SRPM (see attached diff). See: (this test has no URL) (ignore, known failure, should be resolved at some point) [x]: Large data in /usr/share should live in a noarch subpackage if package is arched. Note: Arch-ed rpms have a total of 3143680 bytes in /usr/share (not worth it imo) [x]: Rpmlint is run on debuginfo package(s). Note: No rpmlint messages. [x]: Rpmlint is run on all installed packages. Note: There are rpmlint messages (see attachment). Rpmlint ------- Checking: libxstream-1.0.0-1.fc46.x86_64.rpm libxstream-devel-1.0.0-1.fc46.x86_64.rpm libxstream-doc-1.0.0-1.fc46.noarch.rpm libxstream-1.0.0-1.fc46.src.rpm ============================ rpmlint session starts ============================ rpmlint: 2.8.0 configuration: /usr/lib/python3.14/site-packages/rpmlint/configdefaults.toml /etc/xdg/rpmlint/fedora-legacy-licenses.toml /etc/xdg/rpmlint/fedora-spdx-licenses.toml /etc/xdg/rpmlint/fedora.toml /etc/xdg/rpmlint/scoring.toml /etc/xdg/rpmlint/users-groups.toml /etc/xdg/rpmlint/warn-on-functions.toml rpmlintrc: [PosixPath('/tmp/tmpe67k2ofs')] checks: 32, packages: 4 libxstream.src: E: spelling-error ('numerics', '%description -l en_US numerics -> numeric, numerical, numerous') libxstream.x86_64: E: spelling-error ('numerics', '%description -l en_US numerics -> numeric, numerical, numerous') libxstream-devel.x86_64: E: non-executable-script /usr/share/libxstream/samples/smm/tune_multiply.py 644 /usr/bin/env python3 libxstream-devel.x86_64: E: non-executable-script /usr/share/libxstream/samples/smm/tune_multiply.sh 644 /usr/bin/env bash 4 packages and 0 specfiles checked; 4 errors, 0 warnings, 28 filtered, 4 badness; has taken 0.4 s Rpmlint (debuginfo) ------------------- Checking: libxstream-debuginfo-1.0.0-1.fc46.x86_64.rpm ============================ rpmlint session starts ============================ rpmlint: 2.8.0 configuration: /usr/lib/python3.14/site-packages/rpmlint/configdefaults.toml /etc/xdg/rpmlint/fedora-legacy-licenses.toml /etc/xdg/rpmlint/fedora-spdx-licenses.toml /etc/xdg/rpmlint/fedora.toml /etc/xdg/rpmlint/scoring.toml /etc/xdg/rpmlint/users-groups.toml /etc/xdg/rpmlint/warn-on-functions.toml rpmlintrc: [PosixPath('/tmp/tmpfaputrb6')] checks: 32, packages: 1 1 packages and 0 specfiles checked; 0 errors, 0 warnings, 4 filtered, 0 badness; has taken 0.1 s Rpmlint (installed packages) ---------------------------- ============================ rpmlint session starts ============================ rpmlint: 2.10.0 configuration: /usr/lib/python3.15/site-packages/rpmlint/configdefaults.toml /etc/xdg/rpmlint/fedora-spdx-licenses.toml /etc/xdg/rpmlint/fedora.toml /etc/xdg/rpmlint/scoring.toml /etc/xdg/rpmlint/users-groups.toml /etc/xdg/rpmlint/warn-on-functions.toml checks: 33, packages: 4 libxstream.x86_64: E: spelling-error ('numerics', '%description -l en_US numerics -> numeric, numeric s') libxstream-devel.x86_64: E: non-executable-script /usr/share/libxstream/samples/smm/tune_multiply.py 644 /usr/bin/env python3 libxstream-devel.x86_64: E: non-executable-script /usr/share/libxstream/samples/smm/tune_multiply.sh 644 /usr/bin/env bash 4 packages and 0 specfiles checked; 3 errors, 0 warnings, 28 filtered, 3 badness; has taken 0.4 s Source checksums ---------------- https://github.com/hfp/libxstream/releases/download/1.0.0/libxstream-1.0.0.tar.gz : CHECKSUM(SHA256) this package : 44a2823b12eb58b5eaf97649244b93dcf921597ceabc718053cd28e5f59260e3 CHECKSUM(SHA256) upstream package : 44a2823b12eb58b5eaf97649244b93dcf921597ceabc718053cd28e5f59260e3 Requires -------- libxstream (rpmlib, GLIBC filtered): libOpenCL.so.1()(64bit) libOpenCL.so.1(OPENCL_1.0)(64bit) libOpenCL.so.1(OPENCL_1.1)(64bit) libOpenCL.so.1(OPENCL_1.2)(64bit) libOpenCL.so.1(OPENCL_2.0)(64bit) libOpenCL.so.1(OPENCL_2.1)(64bit) libc.so.6()(64bit) libgomp.so.1()(64bit) libgomp.so.1(OMP_1.0)(64bit) libxs.so.1()(64bit) rtld(GNU_HASH) libxstream-devel (rpmlib, GLIBC filtered): /usr/bin/bash /usr/bin/pkg-config cmake-filesystem(x86-64) libxs-devel(x86-64) libxstream(x86-64) libxstream.so.1()(64bit) ocl-icd-devel(x86-64) pkgconfig(libxs) libxstream-doc (rpmlib, GLIBC filtered): libxstream Provides -------- libxstream: libxstream libxstream(x86-64) libxstream.so.1()(64bit) libxstream-devel: cmake(libxstream) libxstream-devel libxstream-devel(x86-64) pkgconfig(libxstream) libxstream-doc: libxstream-doc Diff spec file in url and in SRPM --------------------------------- --- /home/lecris/FedoraRPMs/2539896-libxstream/srpm/libxstream.spec 2026-09-29 10:28:32.697637541 +0200 +++ /home/lecris/FedoraRPMs/2539896-libxstream/srpm-unpacked/libxstream.spec 2026-09-24 02:00:00.000000000 +0200 @@ -1,2 +1,12 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.8.4) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + %bcond tests 1 @@ -83,3 +93,6 @@ %changelog -%autochangelog +## START: Generated by rpmautospec +* Thu Sep 24 2026 John Doe <packager> - 1.0.0-1 +- Uncommitted changes +## END: Generated by rpmautospec Generated by fedora-review 0.12.0 (a08f0fc) last change: 2026-09-18 Command line :/usr/bin/fedora-review -b 2539896 Buildroot used: fedora-rawhide-x86_64 Active plugins: C/C++, Generic, Shell-api Disabled plugins: PHP, Haskell, Perl, Python, R, fonts, Java, SugarActivity, Ocaml Disabled flags: EXARCH, EPEL6, EPEL7, DISTTAG, BATCH, UNRETIREMENT > - samples/smm/acc_libsmm.h is still licensed under GPL-2.0-or-later. I see that it got relicensed, but that commit [1] but that had no visible discussion. Also all of the copyright is attributed to DBCSR, is that intended? The license has only Intel as copyright holder I guess maybe it's just ported from DBCSR as libxstream is intended to serve as OpenCL backend for it. > - The `libxstream_(cp2k|dbcsr)` being part of this project and not vice-versa is weird. Is there a story behind them? Mainly concerned if this is trying to do some symbol collisions shenanigans AFAIK, the main target of libxs/libxstream is CP2K/DBCSR, so I wouldn't be surprised of this. From commit history it's an interface for downstream regarding CP2K's offload engine? If it's true then it might indeed look a bit strange, but I believe Hans has his technical thoughts. > - Should the pre-tuned samples not be in the main library? Also what is the search pattern for this? Does the user have a writable path in this search? They are tested through GNU Makefile in the main repository. I'm not sure if upstream CMake now covers them well as I haven't taken care of them for a while :( > Why the ExclusiveArch here? It's simply to keep consistent with libxs. However, I didn't check whether other architectures can build it; I think I should check it through Copr. > Devel scripts should be executable (see rpmlint part) I'll take a look; most likely it's a CMake installation issue which has been fixed upstream. > No ctests were run Oh no. This is again an issue that has been addressed upstream, and I didn't notice it... Sorry for that. |