Skip to content

Reply To: Using MRT with GPU

Due to recent bot attacks we have changed the sign-up process. If you want to participate in our forum, first register on this website and then send a message via our contact form.

Forums OpenLB Bug Reports Using MRT with GPU Reply To: Using MRT with GPU

#10450
sfraniatte
Participant

I forgot to say that I have changed the floating point type to double for a good voxelization. Here is my config.mk file :


# Example build config for OpenLB using CUDA on single GPU systems
#
# Tested using CUDA 11.4
#
# Usage:
#  - Copy this file to OpenLB root as <code>config.mk</code>
#  - Adjust CUDA_ARCH to match your specifc GPU
#  - Run <code>make clean; make</code>
#  - Switch to example directory, e.g. <code>examples/laminar/cavity3dBenchmark</code>
#  - Run <code>make</code>
#  - Start the simulation using <code>./cavity3d</code>

CXX             := nvcc
CC              := nvcc

CXXFLAGS        := -O3
CXXFLAGS        += -std=c++20 --forward-unknown-to-host-compiler

PARALLEL_MODE   := NONE

PLATFORMS       := CPU_SISD GPU_CUDA

# for e.g. RTX 30* (Ampere), see table in <code>rules.mk</code> for other options
CUDA_ARCH       := 86

FLOATING_POINT_TYPE := double

USE_EMBEDDED_DEPENDENCIES := ON