Reply To: Multiple GPU compiler error: cannot find -lmpi_cxx: No such file or director
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › Multiple GPU compiler error: cannot find -lmpi_cxx: No such file or director › Reply To: Multiple GPU compiler error: cannot find -lmpi_cxx: No such file or director
Hi thanhphatvt,
the following helped for me:
i changed the “lib” in the Makefile in olb.1.7.r0/externals to this:
all: lib zlib tinyxml
.PHONY: zlib tinyxml
lib:
mkdir -p lib
zlib:
make -C zlib
cp zlib/build/libz.a lib/
clean_zlib:
make -C zlib clean
tinyxml:
make -C tinyxml
cp tinyxml/build/libtinyxml.a lib/
clean_tinyxml:
make -C tinyxml clean
clean: clean_zlib clean_tinyxml
rm -f lib/libz.a lib/libtinyxml.a
and than this is my final config.mk for olb.1.7r0:
CXX := nvcc -ccbin=mpicxx
CC := nvcc -ccbin=mpicc
CXXFLAGS := -O3
CXXFLAGS += -std=c++17
PARALLEL_MODE := MPI
PLATFORMS := CPU_SISD GPU_CUDA
CUDA_ARCH := 80
FLOATING_POINT_TYPE := float
USE_EMBEDDED_DEPENDENCIES := ON
Furthermore i got the problem on our HPC that OpenMPI is not working when just loading the module so here are my modules I am using for HPC in Dresden:
ml release/23.04 GCC/11.3.0 OpenMPI/4.1.4 CUDA/11.7 UCX-CUDA
I hope that this answer is helpful for you.
-Alex