From 37c60f4f4918453a6805d6ad2936ad586ba3c10c Mon Sep 17 00:00:00 2001 From: ignis Date: Tue, 2 Jun 2026 07:26:01 +0000 Subject: [PATCH] Fix: Underline docstring bug, doc deploy URL, and CI mpirun runtime errors --- .forgejo/workflows/deploy-docs.yml | 5 ++++- code/code_gen/post.py | 4 ++-- code/code_gen/regression_verify_synthetic.py | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/deploy-docs.yml b/.forgejo/workflows/deploy-docs.yml index 0e43d15..0ab3ec3 100644 --- a/.forgejo/workflows/deploy-docs.yml +++ b/.forgejo/workflows/deploy-docs.yml @@ -94,6 +94,9 @@ jobs: git config user.email "actions@1gnis-git.duckdns.org" git add . git commit -m "Auto-deploy Docs (${GITHUB_SHA::8})" + SERVER_URL="${{ github.server_url }}" + HOST_ADDR="${SERVER_URL#*//}" + PROTO="${SERVER_URL%%//*}" git push --force \ - "https://${ACTOR}:${DEPLOY_TOKEN}@1gnis-git.duckdns.org/${REPO}.git" \ + "${PROTO}//${ACTOR}:${DEPLOY_TOKEN}@${HOST_ADDR}/${REPO}.git" \ master:gh-pages diff --git a/code/code_gen/post.py b/code/code_gen/post.py index a2b060c..c7926b4 100644 --- a/code/code_gen/post.py +++ b/code/code_gen/post.py @@ -1314,8 +1314,8 @@ class Stage3(): """컴파일러 3단계: 연산 간의 의존성을 해결하여 3D 계산 루프의 최적 실행 순서를 계산합니다. 1. 루프 분할(Loop Splitting): 난류 평균량 연산의 인과관계에 따라 물리 연산을 두 개의 단계(Pass)로 쪼갭니다. - - Pass 1 (평균 계산 전): 입력 물리량들로부터 1차 수식을 연산하고, 1차 평균값(예: )을 누적합하는 연산들. - - Pass 2 (평균 계산 후): 구해진 평균값을 활용하여 변동량(u' = u - )을 계산하고, + - Pass 1 (평균 계산 전): 입력 물리량들로부터 1차 수식을 연산하고, 1차 평균값(예: ``)을 누적합하는 연산들. + - Pass 2 (평균 계산 후): 구해진 평균값을 활용하여 변동량(u' = u - ``)을 계산하고, 이를 통반한 최종 결합 물리량을 추가적으로 계산/평균화하는 연산들. 2. 최적화 위상 정렬(Topological Sort): 각 Pass 내에서 변수의 선행 의존 관계가 완전히 해결된 올바른 순서로 순차 연산 코드가 생성되도록 정렬 알고리즘을 가동합니다. diff --git a/code/code_gen/regression_verify_synthetic.py b/code/code_gen/regression_verify_synthetic.py index 91febc6..c3c24c7 100644 --- a/code/code_gen/regression_verify_synthetic.py +++ b/code/code_gen/regression_verify_synthetic.py @@ -72,7 +72,7 @@ def run_synthetic_regression_test(): # 6. Execute binary inside test run directory # Using 4 ranks for fast execution print("Running compiled MPI binary on synthetic grid...") - run_cmd = ["mpirun", "--allow-run-as-root", "--oversubscribe", "-np", "1", f"./{binary_name}"] + run_cmd = [f"./{binary_name}"] try: subprocess.run( run_cmd,