Skip to content

Fix: Correct FFTW version detection and NCCL build summary - #7995

Open
AsTonyshment wants to merge 1 commit into
deepmodeling:developfrom
AsTonyshment:fix/fftw-version-nccl-summary
Open

AsTonyshment wants to merge 1 commit into
deepmodeling:developfrom
AsTonyshment:fix/fftw-version-nccl-summary

Conversation

@AsTonyshment

Copy link
Copy Markdown
Collaborator

Issues

FFTW was reported as version unknown because detection relied on a nonexistent header macro. NCCL parallel support was always reported as Enabled, even when disabled.

Changes

  • Read FFTW's version from optional pkg-config metadata when its include and library directories match the selected installation; otherwise retain version unknown.
  • Remove duplicate FFTW version detection from the build summary.
  • Report Disabled when ENABLE_NCCL_PARALLEL_DEVICE is off.

@AsTonyshment
AsTonyshment requested review from ZhouXY-PKU and mohanchen and a lite review from Copilot and removed request for Copilot September 20, 2026 15:49
Comment on lines +60 to +69
# FFTW has no version macro; use pkg-config metadata for the selected installation.
find_package(PkgConfig QUIET)
if(PKG_CONFIG_FOUND)
pkg_check_modules(PC_FFTW3 QUIET fftw3)
get_filename_component(_fftw3_library_dir "${FFTW3_LIBRARY}" DIRECTORY)
if(PC_FFTW3_FOUND AND PC_FFTW3_INCLUDEDIR STREQUAL FFTW3_INCLUDE_DIR
AND PC_FFTW3_LIBDIR STREQUAL _fftw3_library_dir)
set(FFTW3_VERSION "${PC_FFTW3_VERSION}")
endif()
endif()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it duplicate the fftw3 discovery practically?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants