Bug 2328503 - Review Request: SpFFT - Sparse 3D FFT library
Summary: Review Request: SpFFT - Sparse 3D FFT library
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Hirotaka Wakabayashi
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/eth-cscs/SpFFT
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-23 20:49 UTC by Benson Muite
Modified: 2024-12-19 08:21 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:
hiwkby: fedora-review?


Attachments (Terms of Use)

Description Benson Muite 2024-11-23 20:49:29 UTC
spec: https://download.copr.fedorainfracloud.org/results/fed500/SpFFT/fedora-rawhide-x86_64/08306901-SpFFT/SpFFT.spec
srpm: https://download.copr.fedorainfracloud.org/results/fed500/SpFFT/fedora-rawhide-x86_64/08306901-SpFFT/SpFFT-1.1.0-1.fc42.src.rpm

description:
A 3D FFT library for sparse frequency domain data written in C++ with
support for MPI, OpenMP, CUDA and ROCm.

Inspired by the need of some computational material science applications
with spherical cutoff data in frequency domain, SpFFT provides Fast
Fourier Transformations of sparse frequency domain data. For distributed
computations with MPI, slab decomposition in space domain and pencil
decomposition in frequency domain (sparse data within a pencil / column
must be on one rank) is used.

### Design Goals
- Sparse frequency domain input
- Reuse of pre-allocated memory
- Support for shifted indexing with centered zero-frequency
- Optional parallelization and GPU acceleration
- Unified interface for calculations on CPUs and GPUs
- Support of Complex-To-Real and Real-To-Complex transforms, where the full
hermitian symmetry property is utilized
- C++, C and Fortran interfaces

### Interface Design
To allow for pre-allocation and reuse of memory, the design is based on two
classes:

- **Grid**: Provides memory for transforms up to a given size.
- **Transform**: Created with information on sparse input data and is
associated with a *Grid*. Maximum size is limited by *Grid* dimensions.
Internal reference counting to *Grid* objects guarantee a valid state
until *Transform* object destruction.

A transform can be computed in-place and out-of-place. Addtionally, an
internally allocated work buffer can optionally be used for input / output
of space domain data.

fas: fed500

Comments:
Working on packages with rocfft and single precision.
Checking on appropriate location for Fortran modules in MPI packages.
Ensuring all directories are owned.

Reproducible: Always

Comment 1 Fedora Review Service 2024-11-23 21:05:24 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8306908
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2328503-spfft/fedora-rawhide-x86_64/08306908-SpFFT/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 2 Hirotaka Wakabayashi 2024-12-19 08:21:57 UTC
Hello Benson, please check my review.


Issues:

- Package name could be spfft-lib like cyrus-sasl-lib as default package names
  SHOULD be in lower case and use dashes in preference to underscores.
  https://docs.fedoraproject.org/en-US/packaging-guidelines/Naming/

- Packages must own all directories they put files, but some directories are
  not be owned. Please re-check them.
  https://docs.fedoraproject.org/en-US/packaging-guidelines/#_file_and_directory_ownership

- Please include the reason why tests are not run as comments in the spec file.
  Tests should be run in the %check section when feasible.
  https://docs.fedoraproject.org/en-US/packaging-guidelines/#_test_suites

- Please check the rpmlint errors of "no-ldconfig-symlink" and
  "double-slash-in-pkgconfig-path"
  https://docs.fedoraproject.org/en-US/packaging-guidelines/#_use_rpmlint


Package Review
==============

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated
[ ] = Manual review needed



===== MUST items =====

C/C++:
[x]: Package does not contain kernel modules.
[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.
[x]: 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". 165 files have
     unknown license. Detailed output of licensecheck in
     /home/mockbuilder/2328503-SpFFT/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[!]: Package requires other packages for directories it uses.
     Note: No known owner of /usr/lib64/openmpi/lib/cmake/SpFFT/modules,
     /usr/lib64/cmake/SpFFT, /usr/lib64/mpich/lib/cmake/SpFFT,
     /usr/lib64/gfortran, /usr/lib64/openmpi/lib/cmake/SpFFT,
     /usr/lib64/mpich/lib/cmake/SpFFT/modules,
     /usr/lib64/cmake/SpFFT/modules
[!]: Package must own all directories that it creates.
     Note: Directories without known owners:
     /usr/lib64/openmpi/lib/cmake/SpFFT, /usr/include/openmpi-x86_64,
     /usr/lib64/openmpi/lib/cmake/SpFFT/modules,
     /usr/lib64/mpich/lib/pkgconfig, /usr/lib64/cmake/SpFFT,
     /usr/lib64/cmake/SpFFT/modules, /usr/lib64/openmpi/lib/cmake,
     /usr/lib64/openmpi/lib/pkgconfig, /usr/include/mpich-x86_64,
     /usr/lib64/mpich/lib/cmake/SpFFT,
     /usr/lib64/mpich/lib/cmake/SpFFT/modules
[x]: %build honors applicable compiler flags or justifies otherwise.
[x]: Package contains no bundled libraries without FPC exception.
[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).
[?]: 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.
[x]: Package is not known to require an ExcludeArch tag.
[-]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 26859 bytes in 3 files.
[?]: 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 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]: 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).
[x]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in SpFFT-
     openmpi , SpFFT-openmpi-devel , SpFFT-mpich , SpFFT-mpich-devel
[?]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[!]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[x]: Package should compile and build into binary rpms on all supported
     architectures.
[?]: %check is present and all tests pass.
[x]: Packages should try to preserve timestamps of original installed
     files.
[x]: Spec use %global instead of %define unless justified.
     Note: %define requiring justification: %define autorelease(e:s:pb:n)
     %{?-p:0.}%{lua:
[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]: 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.

===== EXTRA items =====

Generic:
[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).
[x]: Large data in /usr/share should live in a noarch subpackage if package
     is arched.
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: SpFFT-1.1.0-1.fc42.x86_64.rpm
          SpFFT-devel-1.1.0-1.fc42.x86_64.rpm
          SpFFT-openmpi-1.1.0-1.fc42.x86_64.rpm
          SpFFT-openmpi-devel-1.1.0-1.fc42.x86_64.rpm
          SpFFT-mpich-1.1.0-1.fc42.x86_64.rpm
          SpFFT-mpich-devel-1.1.0-1.fc42.x86_64.rpm
          SpFFT-1.1.0-1.fc42.src.rpm
============================ rpmlint session starts ============================
rpmlint: 2.5.0
configuration:
    /usr/lib/python3.13/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
rpmlintrc: [PosixPath('/tmp/tmpld0qtf2_')]
checks: 32, packages: 7

SpFFT.src: E: spelling-error ('Addtionally', '%description -l en_US Addtionally -> Additionally, Traditionally, Conditionally')
SpFFT.x86_64: E: spelling-error ('Addtionally', '%description -l en_US Addtionally -> Additionally, Traditionally, Conditionally')
SpFFT-mpich.x86_64: E: spelling-error ('Addtionally', '%description -l en_US Addtionally -> Additionally, Traditionally, Conditionally')
SpFFT-openmpi.x86_64: E: spelling-error ('Addtionally', '%description -l en_US Addtionally -> Additionally, Traditionally, Conditionally')
SpFFT-mpich-devel.x86_64: W: only-non-binary-in-usr-lib
SpFFT-openmpi-devel.x86_64: W: only-non-binary-in-usr-lib
SpFFT.x86_64: E: no-ldconfig-symlink /usr/lib64/libspfft.so.1.1.0
SpFFT-mpich.x86_64: E: no-ldconfig-symlink /usr/lib64/mpich/lib/libspfft.so.1.1.0
SpFFT-openmpi.x86_64: E: no-ldconfig-symlink /usr/lib64/openmpi/lib/libspfft.so.1.1.0
SpFFT-devel.x86_64: W: no-documentation
SpFFT-mpich-devel.x86_64: W: no-documentation
SpFFT-openmpi-devel.x86_64: W: no-documentation
SpFFT-mpich-devel.x86_64: E: double-slash-in-pkgconfig-path /usr/lib64/mpich/lib/pkgconfig/SpFFT.pc libdir=${prefix}//usr/lib64/mpich/lib
SpFFT-mpich-devel.x86_64: E: double-slash-in-pkgconfig-path /usr/lib64/mpich/lib/pkgconfig/SpFFT.pc includedir=${prefix}//usr/include/mpich-x86_64
SpFFT-openmpi-devel.x86_64: E: double-slash-in-pkgconfig-path /usr/lib64/openmpi/lib/pkgconfig/SpFFT.pc libdir=${prefix}//usr/lib64/openmpi/lib
SpFFT-openmpi-devel.x86_64: E: double-slash-in-pkgconfig-path /usr/lib64/openmpi/lib/pkgconfig/SpFFT.pc includedir=${prefix}//usr/include/openmpi-x86_64
SpFFT-devel.x86_64: W: dangling-relative-symlink /usr/lib64/libspfft.so.1 libspfft.so.1.1.0
SpFFT-mpich-devel.x86_64: W: dangling-relative-symlink /usr/lib64/mpich/lib/libspfft.so.1 libspfft.so.1.1.0
SpFFT-openmpi-devel.x86_64: W: dangling-relative-symlink /usr/lib64/openmpi/lib/libspfft.so.1 libspfft.so.1.1.0
 7 packages and 0 specfiles checked; 11 errors, 8 warnings, 58 filtered, 11 badness; has taken 1.2 s 




Rpmlint (debuginfo)
-------------------
Checking: SpFFT-debuginfo-1.1.0-1.fc42.x86_64.rpm
          SpFFT-openmpi-debuginfo-1.1.0-1.fc42.x86_64.rpm
          SpFFT-mpich-debuginfo-1.1.0-1.fc42.x86_64.rpm
============================ rpmlint session starts ============================
rpmlint: 2.5.0
configuration:
    /usr/lib/python3.13/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
rpmlintrc: [PosixPath('/tmp/tmp461zk5fr')]
checks: 32, packages: 3

 3 packages and 0 specfiles checked; 0 errors, 0 warnings, 22 filtered, 0 badness; has taken 0.5 s 





Rpmlint (installed packages)
----------------------------
============================ rpmlint session starts ============================
rpmlint: 2.5.0
configuration:
    /usr/lib/python3.13/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: 32, packages: 9

SpFFT-openmpi.x86_64: E: spelling-error ('Addtionally', '%description -l en_US Addtionally -> Additionally, Traditionally, Conditionally')
SpFFT.x86_64: E: spelling-error ('Addtionally', '%description -l en_US Addtionally -> Additionally, Traditionally, Conditionally')
SpFFT-mpich.x86_64: E: spelling-error ('Addtionally', '%description -l en_US Addtionally -> Additionally, Traditionally, Conditionally')
SpFFT-mpich-devel.x86_64: W: only-non-binary-in-usr-lib
SpFFT-openmpi-devel.x86_64: W: only-non-binary-in-usr-lib
SpFFT-openmpi.x86_64: E: no-ldconfig-symlink /usr/lib64/openmpi/lib/libspfft.so.1.1.0
SpFFT.x86_64: E: no-ldconfig-symlink /usr/lib64/libspfft.so.1.1.0
SpFFT-mpich.x86_64: E: no-ldconfig-symlink /usr/lib64/mpich/lib/libspfft.so.1.1.0
SpFFT-mpich-devel.x86_64: W: no-documentation
SpFFT-openmpi-devel.x86_64: W: no-documentation
SpFFT-devel.x86_64: W: no-documentation
SpFFT-mpich-devel.x86_64: E: double-slash-in-pkgconfig-path /usr/lib64/mpich/lib/pkgconfig/SpFFT.pc libdir=${prefix}//usr/lib64/mpich/lib
SpFFT-mpich-devel.x86_64: E: double-slash-in-pkgconfig-path /usr/lib64/mpich/lib/pkgconfig/SpFFT.pc includedir=${prefix}//usr/include/mpich-x86_64
SpFFT-openmpi-devel.x86_64: E: double-slash-in-pkgconfig-path /usr/lib64/openmpi/lib/pkgconfig/SpFFT.pc libdir=${prefix}//usr/lib64/openmpi/lib
SpFFT-openmpi-devel.x86_64: E: double-slash-in-pkgconfig-path /usr/lib64/openmpi/lib/pkgconfig/SpFFT.pc includedir=${prefix}//usr/include/openmpi-x86_64
SpFFT-mpich-devel.x86_64: W: dangling-relative-symlink /usr/lib64/mpich/lib/libspfft.so.1 libspfft.so.1.1.0
SpFFT-openmpi-devel.x86_64: W: dangling-relative-symlink /usr/lib64/openmpi/lib/libspfft.so.1 libspfft.so.1.1.0
SpFFT-devel.x86_64: W: dangling-relative-symlink /usr/lib64/libspfft.so.1 libspfft.so.1.1.0
 9 packages and 0 specfiles checked; 10 errors, 8 warnings, 78 filtered, 10 badness; has taken 1.8 s 



Source checksums
----------------
https://github.com/eth-cscs/SpFFT/archive/v1.1.0/SpFFT-1.1.0.tar.gz :
  CHECKSUM(SHA256) this package     : d4673b3135aebfa1c440723226fe976d518ff881285b3d4787f1aa8210eac81e
  CHECKSUM(SHA256) upstream package : d4673b3135aebfa1c440723226fe976d518ff881285b3d4787f1aa8210eac81e


Requires
--------
SpFFT (rpmlib, GLIBC filtered):
    libc.so.6()(64bit)
    libfftw3.so.3()(64bit)
    libgcc_s.so.1()(64bit)
    libgcc_s.so.1(GCC_3.0)(64bit)
    libgcc_s.so.1(GCC_3.3.1)(64bit)
    libgomp.so.1()(64bit)
    libgomp.so.1(GOMP_1.0)(64bit)
    libgomp.so.1(GOMP_4.0)(64bit)
    libgomp.so.1(OMP_1.0)(64bit)
    libstdc++.so.6()(64bit)
    libstdc++.so.6(CXXABI_1.3)(64bit)
    libstdc++.so.6(CXXABI_1.3.15)(64bit)
    libstdc++.so.6(CXXABI_1.3.9)(64bit)
    rtld(GNU_HASH)

SpFFT-devel (rpmlib, GLIBC filtered):
    /usr/bin/pkg-config
    SpFFT(x86-64)
    cmake-filesystem(x86-64)
    gcc-gfortran(x86-64)
    pkgconfig(fftw3)

SpFFT-openmpi (rpmlib, GLIBC filtered):
    libc.so.6()(64bit)
    libfftw3.so.3()(64bit)
    libgcc_s.so.1()(64bit)
    libgcc_s.so.1(GCC_3.0)(64bit)
    libgcc_s.so.1(GCC_3.3.1)(64bit)
    libgomp.so.1()(64bit)
    libgomp.so.1(GOMP_1.0)(64bit)
    libgomp.so.1(GOMP_4.0)(64bit)
    libgomp.so.1(OMP_1.0)(64bit)
    libmpi.so.40()(64bit)(openmpi-x86_64)
    libstdc++.so.6()(64bit)
    libstdc++.so.6(CXXABI_1.3)(64bit)
    libstdc++.so.6(CXXABI_1.3.15)(64bit)
    libstdc++.so.6(CXXABI_1.3.9)(64bit)
    rtld(GNU_HASH)

SpFFT-openmpi-devel (rpmlib, GLIBC filtered):
    SpFFT-openmpi(x86-64)
    gcc-gfortran(x86-64)

SpFFT-mpich (rpmlib, GLIBC filtered):
    libc.so.6()(64bit)
    libfftw3.so.3()(64bit)
    libgcc_s.so.1()(64bit)
    libgcc_s.so.1(GCC_3.0)(64bit)
    libgcc_s.so.1(GCC_3.3.1)(64bit)
    libgomp.so.1()(64bit)
    libgomp.so.1(GOMP_1.0)(64bit)
    libgomp.so.1(GOMP_4.0)(64bit)
    libgomp.so.1(OMP_1.0)(64bit)
    libmpi.so.12()(64bit)(mpich-x86_64)
    libstdc++.so.6()(64bit)
    libstdc++.so.6(CXXABI_1.3)(64bit)
    libstdc++.so.6(CXXABI_1.3.15)(64bit)
    libstdc++.so.6(CXXABI_1.3.9)(64bit)
    rtld(GNU_HASH)

SpFFT-mpich-devel (rpmlib, GLIBC filtered):
    SpFFT-mpich(x86-64)
    gcc-gfortran(x86-64)



Provides
--------
SpFFT:
    SpFFT
    SpFFT(x86-64)
    libspfft.so.1()(64bit)

SpFFT-devel:
    SpFFT-devel
    SpFFT-devel(x86-64)
    cmake(SpFFT)
    cmake(SpFFTShared)
    cmake(spfft)
    cmake(spfftshared)
    pkgconfig(SpFFT)

SpFFT-openmpi:
    SpFFT-openmpi
    SpFFT-openmpi(x86-64)
    libspfft.so.1()(64bit)(openmpi-x86_64)

SpFFT-openmpi-devel:
    SpFFT-openmpi-devel
    SpFFT-openmpi-devel(x86-64)

SpFFT-mpich:
    SpFFT-mpich
    SpFFT-mpich(x86-64)
    libspfft.so.1()(64bit)(mpich-x86_64)

SpFFT-mpich-devel:
    SpFFT-mpich-devel
    SpFFT-mpich-devel(x86-64)



Generated by fedora-review 0.10.0 (e79b66b) last change: 2023-07-24
Command line :/usr/bin/fedora-review -b 2328503
Buildroot used: fedora-rawhide-x86_64
Active plugins: Generic, C/C++, Shell-api
Disabled plugins: PHP, Java, Perl, Python, Ocaml, R, Haskell, fonts, SugarActivity
Disabled flags: EXARCH, EPEL6, EPEL7, DISTTAG, BATCH


Note You need to log in before you can comment on or make changes to this bug.