Failure in abinit 6.4.1 including gpu code

option, parallelism,...

Moderators: fgoudreault, mcote

Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Locked
tsunetomo
Posts: 3
Joined: Tue Nov 16, 2010 6:29 pm

Failure in abinit 6.4.1 including gpu code

Post by tsunetomo » Tue Nov 16, 2010 6:42 pm

After the configuration step:

Code: Select all

./configure --enable-gpu --with-gpu-prefix=/usr/local/cuda

and the subsequent

Code: Select all

make


the compilation process stops with error:

Code: Select all

[omissis]/abinit-6.4.1/src/68_recursion/first_rec.F90:234: undefined reference to `xsum_mpi_'
[omissis]/abinit-6.4.1/src/68_recursion/first_rec.F90:235: undefined reference to `xsum_mpi_'
collect2: ld returned 1 exit status
make[3]: *** [abinit] Errore 1


A different run with a plain configuration, i.e.

Code: Select all

./configure
results into a successful build.

CPU: Intel(R) Core(TM)2 Duo CPU T7500
OS: Linux Ubuntu 10.10, GCC 4.4.5
GNU ld (GNU Binutils for Ubuntu) 2.20.51-system.20100908
Cuda compilation tools, release 3.2, V0.2.1221
Last edited by tsunetomo on Wed Nov 17, 2010 6:34 pm, edited 1 time in total.

User avatar
pouillon
Posts: 651
Joined: Wed Aug 19, 2009 10:08 am
Location: Spain
Contact:

Re: Failure in abinit 6.4.1 compilation including gpu code

Post by pouillon » Tue Nov 16, 2010 8:31 pm

GPU support is still under active development. You should thus expect a few bumps on the road to such calculations.

At present, --enable-gpu requires --enable-mpi, but the options have not been bound to one another yet. I'll fix it for 6.4.2.

Thank you for reporting this problem.
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain

User avatar
gmatteo
Posts: 291
Joined: Sun Aug 16, 2009 5:40 pm

Re: Failure in abinit 6.4.1 compilation including gpu code

Post by gmatteo » Tue Nov 16, 2010 8:37 pm

It's my fault. I've forgotten to add "use m_xmpi"
in the preamble of 68_recursion/first_rec.F90 .

Fixed in v642

tsunetomo
Posts: 3
Joined: Tue Nov 16, 2010 6:29 pm

Re: Failure in abinit 6.4.1 compilation including gpu code

Post by tsunetomo » Wed Nov 17, 2010 9:24 am

What is the recommended way to obtain an up-to-date (6.4.*) functional MPI+GPU build of abinit?
Should I checkout the source from a public branch of a developer?

User avatar
pouillon
Posts: 651
Joined: Wed Aug 19, 2009 10:08 am
Location: Spain
Contact:

Re: Failure in abinit 6.4.1 compilation including gpu code

Post by pouillon » Wed Nov 17, 2010 1:22 pm

If you do what Matteo says, it should already work with 6.4.1.
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain

tsunetomo
Posts: 3
Joined: Tue Nov 16, 2010 6:29 pm

Re: Failure in abinit 6.4.1 compilation including gpu code

Post by tsunetomo » Wed Nov 17, 2010 6:33 pm

Thanks, that worked fine.

Locked