-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated the cpmd recipe #27
base: releases/syrah
Are you sure you want to change the base?
Conversation
batatasfritas
commented
Dec 23, 2022
- Added FFTW support (improves by 10% on GCC)
- Added proper Intel support
- Added FFTW support (improves by 10% on GCC) - Added proper Intel support
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In addition to the remaks in the code, it seems that to get cpmd it is easier now
no need for manual_download
https://github.com/CPMD-code/CPMD
cp.filter("FFLAGS='", "FFLAGS='-I{0}".format(spec['fftw'].include)) | ||
cp.filter( | ||
"LIBS='", | ||
"LIBS='{0} ".format(spec['fftw'].libs.ld_flags) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cp.filter("FFLAGS='", "FFLAGS='-I{0}".format(spec['fftw'].include)) | |
cp.filter( | |
"LIBS='", | |
"LIBS='{0} ".format(spec['fftw'].libs.ld_flags) | |
cp.filter("FFLAGS='", "FFLAGS='-I{0}".format(spec['fftw-api'].include)) | |
cp.filter( | |
"LIBS='", | |
"LIBS='{0} ".format(spec['fftw-api'].libs.ld_flags) |
if spec.satisfies('%intel'): | ||
cp.filter('CPP=', 'CPP=/lib/cpp -P -traditional') | ||
#cp.filter("CPPFLAGS='-D__Linux", "CPPFLAGS='-D__Linux -DLINUX_IFC") | ||
cp.filter("-D__HAS_FFT_DEFAULT", "-D__HAS_FFT_FFTW3") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cp.filter("-D__HAS_FFT_DEFAULT", "-D__HAS_FFT_FFTW3") |
It should be handled by the variant
test higher
if spec.satisfies('%gcc'): | ||
cbase = 'LINUX-GFORTRAN' | ||
elif spec.satisfies('%intel'): | ||
cbase = 'LINUX-INTEL' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if spec.satisfies('%gcc'): | |
cbase = 'LINUX-GFORTRAN' | |
elif spec.satisfies('%intel'): | |
cbase = 'LINUX-INTEL' | |
cbase = 'LINUX-GFORTRAN' | |
if spec.satisfies('%intel'): | |
cbase = 'LINUX-INTEL' |
Other why it will fail with any other compiler
If it should fail the conflicts()
lines are missing
if not spec.satisfies('^mkl'): | ||
cp.filter( | ||
'LIBS=.+', | ||
"LIBS='{0}'".format(spec['lapack'].libs.ld_flags) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should work for intel-mkl
also no ?
In which case it is already above other why the test can be combined with the previous one line 79
if not spec.satisfies('%intel') or not spec.satisfies('^mkl'):