C内核按库功能拆解,编译结果缓存区构建,编译过程与已有缓存结果对照功能实现

This commit is contained in:
lujingze committed 2026-09-12 05:24:48 +00:00
1 parent aa4951b14e
commit 151e6e4b97
30 files changed
+4856 -604

No files matched your search

+2 -1
View File
@@ -5,6 +5,7 @@ import tempfile
import unittest
from app.simulation.native_codegen.build import toolchain
from tests.native_kernel_source import native_kernel_source
ROOT = Path(__file__).resolve().parents[1]
@@ -16,7 +17,7 @@ class NativePipeCacheTests(unittest.TestCase):
compiler = toolchain()[0]
except (OSError, RuntimeError, subprocess.SubprocessError) as exc:
self.skipTest(f"Native toolchain unavailable: {exc}")
source = (ROOT / "native/components/kernels.c").read_text()
source = native_kernel_source()
signature = "double d, double length, double rr, int kind) {"
self.assertEqual(source.count(signature), 1)
source = "static int pipe_calls;\n" + source.replace(