Skip to content

Reply To: Mixed Mode Compilation issue on HPC

Due to recent bot attacks we have changed the sign-up process. If you want to participate in our forum please send a message via our contact form.

Forums OpenLB General Topics Mixed Mode Compilation issue on HPC Reply To: Mixed Mode Compilation issue on HPC

#11068
leonc
Participant

Hi Adrian,

Managed to get OpenLB installed! To those interested, steps are as below.
Downloaded version 1.9
loaded the following modules

module load pbs gcc/14.2.0 openmpi/5.0.8 cuda/12.9.0

in config.mk settings

OLB_MIXED_MODE_INCLUDE_CPP := ON
CXX             := mpic++
CC              := mpicc
CXXFLAGS        := -O3 -march=x86-64-v3
CXXFLAGS        += -std=c++20
PARALLEL_MODE   := MPI
PLATFORMS       := CPU_SISD GPU_CUDA
CUDA_CXX        := nvcc
CUDA_CXXFLAGS   := -std=c++20 -allow-unsupported-compiler
CUDA_LDFLAGS    := -L/apps/cuda/12.9.0/lib64
CUDA_ARCH       := 70
FLOATING_POINT_TYPE := float
USE_EMBEDDED_DEPENDENCIES := ON

and editing the escaping “#” in default.mixed.mk in the indented line:

OLB_MIXED_MODE_INCLUDE := \#include <olb.h>\n
ifdef OLB_MIXED_MODE_INCLUDE_CPP
OLB_MIXED_MODE_INCLUDE := $(CPP_FILES:%=\n\#include “../%”\n)
endif

Kind regards,
Leon