Reply To: gpu usage question
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › gpu usage question › Reply To: gpu usage question
Thank you !
I’m using 3090Ti
first :
” mpicxx –showme:link ” results : -pthread -Wl,-rpath -Wl,/usr/local/lib -Wl,–enable-new-dtags -L/usr/local/lib -lmpi
second :
” nvcc -V ” results : Cuda compilation tools, release 10.1, V10.1.243
third :
” nvidia-smi ” results : CUDA Version: 12.0
fourth :
” #include <thrust/execution_policy.h> ” add
fifth :
” gpu_only.mk ” result : same error “value c++17 is not defined for std..”
sixth :
The file name in the config folder was changed to config.mk and used.
code
“””
CXX := nvcc
CC := nvcc
CXXFLAGS := -O3
CXXFLAGS += -std=c++17
PARALLEL_MODE := MPI
MPIFLAGS := -lmpi_cxx -lmpi
PLATFORMS := CPU_SISD GPU_CUDA
# for e.g. RTX 30* (Ampere), see table in rules.mk
for other options
CUDA_ARCH := 86
USE_EMBEDDED_DEPENDENCIES := ON
“””
thank you!