Errors while compiling with gpu package

Hello developers,

  I am experiencing a linking error while compiling lammps for linux. Here
is part of the message:

../../lib/gpu/libgpu.a(pair_gpu_device.o):(.rodata+0x4a0): undefined
reference to `typeinfo for MPI::Intracomm'
../../lib/gpu/libgpu.a(pair_gpu_device.o):(.rodata+0x4c0): undefined
reference to `typeinfo for MPI::Intracomm'
../../lib/gpu/libgpu.a(pair_gpu_device.o):(.rodata+0x510): undefined
reference to `typeinfo for MPI::Comm'
(and other similar messages)

  I have the packages kspace and gpu installed. Previous to that, I
compiled the gpu library with no errors. However, the executable
nvc_get_devices returned an error 134 with the message:

terminate called after throwing an instance of 'cudaError'
Aborted

  My gpu is a GT 240 with 1.2 compute capability and I installed the cuda
toolkit 4.0.17 64 bits.

  What could be the cause of those errors?

  Best regards,

  Luis

Hi

Could it be that you compiled the gpu-lib and the main programm with different MPI versions (i.e. different compiler wrappers)?
The GPU lib also uses an MPI Wrapper as compiler.

Christian

-------- Original-Nachricht --------

If Christian's answer is not the problem (it would
be bad to compile any LAMMPS library that uses MPI with a different
MPI than LAMMPS itself), then maybe Mike has
a suggestion (CCd).

Steve

Hello developers,

I am experiencing a linking error while compiling lammps for linux. Here
is part of the message:

../../lib/gpu/libgpu.a(pair_gpu_device.o):(.rodata+0x4a0): undefined
reference to `typeinfo for MPI::Intracomm'
../../lib/gpu/libgpu.a(pair_gpu_device.o):(.rodata+0x4c0): undefined
reference to `typeinfo for MPI::Intracomm'
../../lib/gpu/libgpu.a(pair_gpu_device.o):(.rodata+0x510): undefined
reference to `typeinfo for MPI::Comm'
(and other similar messages)

I have the packages kspace and gpu installed. Previous to that, I
compiled the gpu library with no errors. However, the executable
nvc_get_devices returned an error 134 with the message:

terminate called after throwing an instance of 'cudaError'
Aborted

My gpu is a GT 240 with 1.2 compute capability and I installed the cuda
toolkit 4.0.17 64 bits.

What could be the cause of those errors?

inconsistent use of the -fno-rtti flag.
you have to use -fno-rtti either for everything or nothing.

axel.

Try using the 'mpic++' wrapper for all compile and link commands instead
of 'mpicc'. If that doesn't work, attach your Makefiles and someone will
probably be able to spot something.

- Mike