CFDEM compilation issue

Submitted by ssukirt on Tue, 05/05/2020 - 17:52

Hello!

I am am trying to install CFDEM on a CentOS cluster. I keep getting the following error when I try to compile using cfdemCompCFDEMall:

Warning: MPICXX compiler is g++ but CXX=mpiCC. Thus, setting OMPI_CXX to mpiCC.
make[1]: Entering directory `/home/ssukirt/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_auto'
Makefile:499: *** 'Could not compile and link a simple MPI example. Test was done with MPI_LIB=/apps/rice7/openmpi.slurm/slurm-19.05/2.1.6_gcc-4.8.5/lib/'. Stop.
make[1]: Leaving directory `/home/ssukirt/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_auto'
make: *** [auto] Error 2
Warning: MPICXX compiler is g++ but CXX=mpiCC. Thus, setting OMPI_CXX to mpiCC.
make[1]: Entering directory `/home/ssukirt/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_auto'
Makefile:499: *** 'Could not compile and link a simple MPI example. Test was done with MPI_LIB=/apps/rice7/openmpi.slurm/slurm-19.05/2.1.6_gcc-4.8.5/lib/'. Stop.
make[1]: Leaving directory `/home/ssukirt/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_auto'
make: *** [auto] Error 2

In Makefile.user, I have set
MPICXX_USR=/apps/rice7/openmpi.slurm/slurm-19.05/2.1.6_gcc-4.8.5/bin/mpicxx
MPI_INC_USR=/apps/rice7/openmpi.slurm/slurm-19.05/2.1.6_gcc-4.8.5/include/
MPI_LIB_USR=/apps/rice7/openmpi.slurm/slurm-19.05/2.1.6_gcc-4.8.5/lib/

I have used the directories where mpic++ is located according to cfdemSysTest. Am I using the incorrect directories? I have attached the outputs for cfdemSysTest and cfdemCompCFDEMall. I have been trying to resolve this for a few days now and I would be grateful if any one could give me a hint towards possible solutions.

Thank you and Regards,
Sukirt

mofazli | Wed, 05/06/2020 - 00:35

Hi SSUKRIT,
I think it's better to install CFDEM on a container and then use the container on CentOS.
cheers,
Mo

ssukirt | Wed, 05/06/2020 - 15:10

Thanks a lot for your response, Mo! Are there any existing containers or docker files that I can use? Or if possible, could you direct me to any helpful links as to how to do this? I appreciate all the help!

mofazli | Thu, 05/07/2020 - 00:43

Sorry, I have a container file for CFDEM but it seems to be too large for sending. However, You can ask the guy who maintains the cluster to help you in this regard.
Furthermore, there are so many tutorials on web for creating a container file, but you should be careful since you will face lots of errors during CFDEM installation on the container.