Release FemLite 0.5.2 V5 closeout
FemLite CI / build-test (push) Has been cancelled

This commit is contained in:
shenw
2026-07-01 14:51:40 +08:00
parent 5e90d58d0e
commit 75d4e735b1
82 changed files with 9972 additions and 2613 deletions
+17 -2
View File
@@ -11,6 +11,10 @@ from pathlib import Path
METRICS = (
"path_steps",
"path_active",
"path_bvh_nodes",
"path_cache_used",
"active_count",
"search_facets",
"search_masters",
@@ -25,7 +29,7 @@ def run_case(source_root: Path, executable: Path, threads: int) -> dict[str, int
env = os.environ.copy()
env["OMP_NUM_THREADS"] = str(threads)
proc = subprocess.run(
[str(executable), "32", "1"],
[str(executable), "64", "1", "4"],
cwd=source_root,
env=env,
text=True,
@@ -57,6 +61,17 @@ def parse_metrics(output: str, threads: int) -> dict[str, int]:
)
if values["active_count"] <= 0:
raise SystemExit(f"no active contact for OMP_NUM_THREADS={threads}")
if values["path_active"] <= 0:
raise SystemExit(f"no active contact path for OMP_NUM_THREADS={threads}")
if values["path_bvh_nodes"] <= 0:
raise SystemExit(f"no BVH build path for OMP_NUM_THREADS={threads}")
if values["path_cache_used"] <= 0:
raise SystemExit(f"no BVH cache path for OMP_NUM_THREADS={threads}")
if values["path_steps"] != 4:
raise SystemExit(
f"unexpected path step count for OMP_NUM_THREADS={threads}: "
f"{values['path_steps']}"
)
if values["cache_used"] <= 0:
raise SystemExit(f"no BVH cache use for OMP_NUM_THREADS={threads}")
return values
@@ -89,7 +104,7 @@ def main(argv: list[str]) -> int:
)
return 1
print("perf_contact_pair OpenMP consistency: PASS")
print("perf_contact_pair path OpenMP consistency: PASS")
for metric in METRICS:
print(f" {metric}: {serial[metric]}")
return 0
+2 -1
View File
@@ -9,7 +9,8 @@ from pathlib import Path
SOURCE_SUFFIXES = {".f90", ".c", ".h", ".py"}
FORTRAN_ROUTINE = re.compile(
r"^\s*(?:recursive\s+)?(?:subroutine|function|integer\s+function|"
r"logical\s+function|real\s*\([^)]*\)\s+function)\s+([a-zA-Z_]\w*)",
r"logical\s+function|real\s*\([^)]*\)\s+function|"
r"type\s*\([^)]*\)\s+function)\s+([a-zA-Z_]\w*)",
re.IGNORECASE,
)
PYTHON_FUNCTION = re.compile(r"^(?P<indent>\s*)def\s+(?P<name>[a-zA-Z_]\w*)\s*\(")