Compiling deal.ii with candi on a cluster with cray programming environment

29 views
Skip to first unread message

Hang ZHANG

unread,
Nov 10, 2025, 7:04:39 AMNov 10
to deal.II User Group
Hi All,

I am having a frustrating issue when installing ASPECT on a cluster, and the problem seems to have something to do with the compilation of deal.ii. The OS is Red Hat 9, but the development environment is CRAY Programming Environment, so the compiler commands should be different.
Weixin Image_20251109161812_16_204.png
I added these codes to the configuration file of candi (local.cfg):

DEAL_II_CONFOPTS=“\
-DDEAL_II_WITH_COMPLEX_VALUES=OFF\
-DDEAL_II_WITH_MPI=ON \
-DMPI_CXX_COMPILER=CC\
-DMPI_C_COMPILER=cc\
-DMPI_Fortran_COMPILER=ftn”

And some settings on the global shell:

module switchPrgEnv-intel/8.6.0 PrgEnv-gnu/8.6.0
export CRAYPE_LINK_TYPE=dynamic
export CC=cc
export CXX=CC
export FC=ftn
export FF=ftn

But still the configuration of deal.ii failed…The program keeps looking for libmpichcxx, which is not in the system at all. I got stuck here for quite a while and cannot figure out why. Could anyone tell me what to do with it?

Thanks in advance!

Regards,
Hang


Hang ZHANG

unread,
Nov 12, 2025, 11:56:15 PM (13 days ago) Nov 12
to deal.II User Group

Hi all,

The issue has been resolved, the problem was in the configuration file deal.II-toolchain/platforms/contributed/cray.platform, which contains the line:

-D MPI_CXX_LIBRARIES="${MPICH_DIR}/lib/libmpichcxx.so;${MPICH_DIR}/lib/libmpich.so"

However, the cluster does not have such a file called libmpichcxx.so, so the solution is simple, just remove this part of the flag.

Best,
Hang
2025年11月10日月曜日 21:04:39 UTC+9 Hang ZHANG:
Reply all
Reply to author
Forward
0 new messages