Skip to content

Add cray-fftw#20654

Merged
tldahlgren merged 1 commit intospack:developfrom
haampie:add-cray-fftw
Jan 5, 2021
Merged

Add cray-fftw#20654
tldahlgren merged 1 commit intospack:developfrom
haampie:add-cray-fftw

Conversation

@haampie
Copy link
Copy Markdown
Member

@haampie haampie commented Jan 4, 2021

Adds a wrapper package for cray-fftw.


To install this package, list it as an external package in packages.yaml,
and make sure to load the correct cray-fftw module. In some cases you
need to load cray-mpich before cray-fftw.
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.

Curious: Can these cases be specified as dependencies?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm afraid it's not being picked up, and we should really fix that. If I add depends_on('cray-mpich') and register cray-mpich as external + not buildable + specify a module, I'm not getting it to load:

$ spack build-env fftw-example@develop %gcc@:8 ^[email protected] -- /bin/bash -c 'module list |& grep mpich'
.. nothing ..

Also as mentioned above, the order in which modules are loaded is important. It took me a while to figure out that running module load cray-fftw and then module load cray-mpich causes troubles with GCC because Cray likes to add -Wl,--as-needed to all kinds of libs, and that makes linking order important 😓

Copy link
Copy Markdown
Contributor

@tldahlgren tldahlgren left a comment

Choose a reason for hiding this comment

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

LGTM.

@tldahlgren tldahlgren merged commit 4a7c4e6 into spack:develop Jan 5, 2021
@tldahlgren
Copy link
Copy Markdown
Contributor

Thank you for your contribution!

bollig pushed a commit to bollig/spack that referenced this pull request Jan 12, 2021
loulawrence pushed a commit to loulawrence/spack that referenced this pull request Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants