Skip to content

modified:fftw/package.py,new file:a64fx-3.3.8.patch#18349

Closed
hirashima-ryota wants to merge 1 commit intospack:developfrom
hirashima-ryota:features/fftw-tune
Closed

modified:fftw/package.py,new file:a64fx-3.3.8.patch#18349
hirashima-ryota wants to merge 1 commit intospack:developfrom
hirashima-ryota:features/fftw-tune

Conversation

@hirashima-ryota
Copy link
Copy Markdown

fftw(3.3.8) tunning for Fujitsu Compiler(a64fx)
modified:fftw/package.py
new file:a64fx-3.3.8.patch

@adamjstewart
Copy link
Copy Markdown
Member

Can you rebase on develop? There are some conflicts and some of your changes undo changes in develop.

patch('pfft-3.3.5.patch', when="@3.3.5:+pfft_patches", level=0)
patch('pfft-3.3.4.patch', when="@3.3.4+pfft_patches", level=0)
patch('pgi-3.3.6-pl2.patch', when="@3.3.6-pl2%pgi", level=0)
patch('a64fx-3.3.8.patch', when="@3.3.8 target=a64fx")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you provide a reference where this patch is discussed? Asking since the patch changes ~8k lines in the sources. Will it be accepted upstream for future releases?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

FWIW, the patch is quite big because it modifies a bunch of files that are automatically generated, so it would be much easier to review the patch vs the FFTW/fftw3 repo.
That being said, such a patch would not be a fit for spack since the FFTW bootstrap.sh is a dependency hell (including an old ocaml version that supports a removed module) and spack should keep building fftw from a tarball.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

FWIW, the patch is quite big because it modifies a bunch of files that are automatically generated, so it would be much easier to review the patch vs the FFTW/fftw3 repo

I concur, my question was more like to know if such a PR was submitted upstream to the FFTW repo and if it's worth to get it merged there and then use the latest release, in particular considering that it's likely that a new release will be tagged soon: FFTW/fftw3#210

@hirashima-ryota
Copy link
Copy Markdown
Author

sorry.this request is closed.

@scheibelp
Copy link
Copy Markdown
Member

We do add some large patches although the only one of comparable size is at #4783 (although that is a patch for a single version, and that patch was later upstreamed to the openblas repository).

I have a couple questions:

  • Given that this operates on autogenerated files, one of my concerns is that the next version would require a similar patch. Do you think this patch will work equally as well for the next version of FFTW?
  • If this isn't going to be added to the official FFTW repository, do you maintain a fork of it that this could pull the patch from?

@scheibelp scheibelp self-assigned this Sep 11, 2020
@takahiroogura
Copy link
Copy Markdown

Thank you for your comment.

* Given that this operates on autogenerated files, one of my concerns is that the next version would require a similar patch. Do you think this patch will work equally as well for the next version of FFTW?

Humm.... I think it can be used unless it is a major fix, but I think it should not be applied without testing.
So I think it should be a patch limited to this version.

* If this isn't going to be added to the official FFTW repository, do you maintain a fork of it that this could pull the patch from?

It's too Fujitsu compiler specific modification to add this fix to the official FFTW repository and It's probably unacceptable for FFTW community.
On the other hand, in Fugaku and other Fujitsu systems, each operational team provides FFTW with this patch applied.
If such patches can be managed by Spack, there is a great advantage for those who use Fujitsu systems.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants