Modifying the Configuration File
By default, the program performs non-parallel computing. To perform parallel computing, modify the configuration file.
Procedure
- Use PuTTY to log in to the server as the root user.
- Edit the config.mk file in the olb-1.4r0 directory.
vim config.mk
- Press i to enter the insert mode and modify the file as follows:
#CXX := g++ # Default CXX := mpicxx #CC := gcc # Default CC := mpicc OPTIM := -03 -Wall –march=native –mtune=native DEBUG := -g –Wall –DOLB_DEBUG CXXFLAGS := $(OPTIM) CXXFLAGA += -std=c++14 ARPRG := ar LDFLAGS := #PARALLEL_MODE := OFF PARALLEL_MODE := HYBRID MPIFLAGS := OMPFLAGS := -fopenmp BUILDTYPE := generic FEATURES :=
- Press Esc, type :wq!, and press Enter to save the file and exit.
Parent topic: Installing OpenLB