Ready for fvm steady case

This commit is contained in:
2025-09-21 20:57:02 +02:00
parent 3a53b6ebf7
commit 513f071748
59 changed files with 1813 additions and 983 deletions
+13 -6
View File
@@ -47,7 +47,7 @@ TEST_MAIN := $(OBJ_DIR)/test/test_all.o
# === OpenMP runtime configuration (override-able) ===
OMP_PROC_BIND ?= close # close|spread|master
OMP_PLACES ?= cores # cores|threads|sockets
OMP_MAX_LEVELS ?= 2 # 1 = no nested teams; set 2+ to allow nesting
OMP_MAX_LEVELS ?= 1 # 1 = no nested teams; set 2+ to allow nesting
OMP_THREADS ?= 16 # e.g. "16" or "8,4" for nested (outer,inner)
OMP_DYNAMIC ?= TRUE # TRUE/FALSE: let runtime adjust threads
OMP_SCHEDULE ?= STATIC # STATIC recommended for matvec/matmul
@@ -103,13 +103,20 @@ run: clean-test $(TARGET)
./$(TARGET)
# Handy presets
.PHONY: run-single
run-single: ## Single-level parallel (good default)
.PHONY: run-single-core
run-single-core: ## Single-level one core (good default)
$(MAKE) run OMP_MAX_LEVELS=1 OMP_THREADS=1 OMP_PROC_BIND=close OMP_PLACES=cores
# Handy presets
.PHONY: run-multi-core
run-multi-core: ## Single-level parallel (good default)
$(MAKE) run OMP_MAX_LEVELS=1 OMP_THREADS=16 OMP_PROC_BIND=close OMP_PLACES=cores
.PHONY: run-nested
run-nested: ## Two-level nested (outer,inner), adjust to your cores
$(MAKE) run OMP_MAX_LEVELS=2 OMP_THREADS="4,8" OMP_PROC_BIND=close OMP_PLACES=cores
.PHONY: run-nested-multi-core
run-nested-multi-core: ## Two-level nested (outer,inner), adjust to your cores
$(MAKE) run OMP_MAX_LEVELS=2 OMP_THREADS="2,8" OMP_PROC_BIND=close OMP_PLACES=cores
# Optional: print debug info
.PHONY: info