Page 1 of 1

Failure in abinit 6.4.1 including gpu code

Posted: Tue Nov 16, 2010 6:42 pm
by tsunetomo
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

Re: Failure in abinit 6.4.1 compilation including gpu code

Posted: Tue Nov 16, 2010 8:31 pm
by pouillon
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.

Re: Failure in abinit 6.4.1 compilation including gpu code

Posted: Tue Nov 16, 2010 8:37 pm
by gmatteo
It's my fault. I've forgotten to add "use m_xmpi"
in the preamble of 68_recursion/first_rec.F90 .

Fixed in v642

Re: Failure in abinit 6.4.1 compilation including gpu code

Posted: Wed Nov 17, 2010 9:24 am
by tsunetomo
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?

Re: Failure in abinit 6.4.1 compilation including gpu code

Posted: Wed Nov 17, 2010 1:22 pm
by pouillon
If you do what Matteo says, it should already work with 6.4.1.

Re: Failure in abinit 6.4.1 compilation including gpu code

Posted: Wed Nov 17, 2010 6:33 pm
by tsunetomo
Thanks, that worked fine.