Skip to content

Add libint package#1264

Merged
tgamblin merged 5 commits intospack:developfrom
adamjstewart:features/libint
Sep 29, 2016
Merged

Add libint package#1264
tgamblin merged 5 commits intospack:developfrom
adamjstewart:features/libint

Conversation

@adamjstewart
Copy link
Copy Markdown
Member

[email protected] is a dependency for CP2K. I also added support for newer versions as well.

@adamjstewart adamjstewart changed the title Add libint package [WIP] Add libint package Jul 16, 2016
@adamjstewart
Copy link
Copy Markdown
Member Author

Going to add some additional configure flags needed by CP2K on Monday

@adamjstewart
Copy link
Copy Markdown
Member Author

For reference, here are the CP2K installation instructions for libint:

# LIBINT: configure, build, and install
# Version 1.1.5 (tested)
#
# $ env \
#   AR=xiar \
#   FC=ifort F77=ifort F90=ifort FCFLAGS="-O2 -xHost -ipo" \
#   CC=icc CFLAGS="-O2 -xHost -ipo" \
#   CXX=icpc CXXFLAGS="-O2 -xHost -ipo" \
#   ./configure --prefix=$HOME/libint \
#     --with-cc-optflags="-O2 -xHost -ipo" \
#     --with-cxx-optflags="-O2 -xHost -ipo" \
#     --with-libint-max-am=5 \
#     --with-libderiv-max-am1=4
# $ make
# $ make install
# $ make realclean
#
#LIBINTROOT = $(HOME)/libint

if which('xiar'):
env['AR'] = 'xiar'

env['CFLAGS'] = optflags
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.

i think now one can set flags from packages.yaml (never used it myself though), maybe apply default flags only when nothing is set there?

@adamjstewart
Copy link
Copy Markdown
Member Author

And here are the CP2K instructions for installing libxc:

# LIBXC: configure, build, and install
# Version 2.2.2 (tested)
#
# $ env \
#   AR=xiar \
#   FC=ifort F77=ifort F90=ifort FCFLAGS="-O2 -xHost -ipo" \
#   CC=icc CFLAGS="-O2 -xHost -ipo" \
#   ./configure --prefix=$HOME/libxc
# $ make
# $ make install
# $ make clean
#
#LIBXCROOT = $(HOME)/libxc

@adamjstewart adamjstewart changed the title [WIP] Add libint package Add libint package Jul 21, 2016
@alalazo
Copy link
Copy Markdown
Member

alalazo commented Aug 17, 2016

@adamjstewart are you still working on this ?

@adamjstewart
Copy link
Copy Markdown
Member Author

@alalazo Nope, it's ready as far as I'm concerned. There were some concerns about my use of optimization flags but I'm still not sure what the best way to do that is.

@alalazo
Copy link
Copy Markdown
Member

alalazo commented Aug 19, 2016

@adamjstewart Does the latest libint build for you ? For me it's complaining at configure about :

checking for gmpxx.h... no
configure: error: cannot link against GMP C++ library. Please get the latest GMP with support for C++. It can be obtained at gmplib.org .

Should we --enable-cxx in gmp within this PR ?

@adamjstewart
Copy link
Copy Markdown
Member Author

adamjstewart commented Aug 19, 2016

@alalazo It worked before, let me try it again. Rebased.

@adamjstewart
Copy link
Copy Markdown
Member Author

adamjstewart commented Aug 19, 2016

@alalazo It works for me:

checking gmpxx.h usability... yes
checking gmpxx.h presence... yes
checking for gmpxx.h... yes
checking if GMP C++ library is usable... yes

Not sure why it's not working for you. But I also see no reason not to build gmp with --enable-cxx. I'm surprised it's off by default. I'll try that out just to make sure it works.

@adamjstewart
Copy link
Copy Markdown
Member Author

@alalazo Added the flag to GMP and both packages pass all of their tests. If you want to try it out, you may need to force pull because I rebased the branch. Let me know if you catch any other bugs!

@adamjstewart
Copy link
Copy Markdown
Member Author

Ping @tgamblin. How do you feel about this PR?

@tgamblin tgamblin merged commit deb1cb4 into spack:develop Sep 29, 2016
@alalazo
Copy link
Copy Markdown
Member

alalazo commented Sep 29, 2016

@adamjstewart Tomorrow I'll try to port cp2k support for libint

@adamjstewart adamjstewart deleted the features/libint branch September 30, 2016 15:06
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.

5 participants